Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
rust-study.ajousw.kr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rust-study
rust-study.ajousw.kr
Commits
00e5eabb
Commit
00e5eabb
authored
2 years ago
by
Alfex4936
Browse files
Options
Downloads
Patches
Plain Diff
Fix python
parent
3f85cbde
No related branches found
No related tags found
No related merge requests found
Pipeline
#6459
passed
2 years ago
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/15_ko.html
+15
-11
15 additions, 11 deletions
docs/15_ko.html
frontend/lessons/ko/chapter_1.yaml
+1
-0
1 addition, 0 deletions
frontend/lessons/ko/chapter_1.yaml
with
16 additions
and
11 deletions
docs/15_ko.html
+
15
−
11
View file @
00e5eabb
...
...
@@ -42,17 +42,21 @@
<p>
함수 이름은 항상
<code>
snake_case
</code>
로 지정됩니다.
</p>
<p>
힌트: 함수를 정의하는 경우, 해당 함수가 수신하는 데이터를 매개변수 (parameter)라고합니다.
<br
/>
그 함수를 호출하고 데이터를 전달하면 인수(argument)라고합니다.
</p>
<p>
```python # 파이썬으로 보면
<br
/>
def add(x: int, y: int) -
>
int:
<br
/>
return x + y
</p>
<p>
def subtract(x: int, y: int) -
>
int:
<br
/>
return x - y
</p>
<p>
def main():
<br
/>
print(f"42 + 13 = {add(42, 13)}")
<br
/>
print(f"42 - 13 = {subtract(42, 13)}")
</p>
<p>
if
<strong>
name
</strong>
== "
<strong>
main
</strong>
":
<br
/>
main()
<br
/>
```
</p>
<pre><code
class=
"python language-python"
>
# 파이썬으로 보면
def add(x: int, y: int) -
>
int:
return x + y
def subtract(x: int, y: int) -
>
int:
return x - y
def main():
print(f"42 + 13 = {add(42, 13)}")
print(f"42 - 13 = {subtract(42, 13)}")
if __name__ == "__main__":
main()
</code></pre>
<div
class=
"bottomnav"
>
<span
class=
"back"
><a
href=
"14_ko.html"
rel=
"prev"
>
❮ 이전
</a></span>
<span
class=
"next"
><a
href=
"16_ko.html"
rel=
"next"
>
다음 ❯
</a></span>
...
...
This diff is collapsed.
Click to expand it.
frontend/lessons/ko/chapter_1.yaml
+
1
−
0
View file @
00e5eabb
...
...
@@ -343,6 +343,7 @@
```python
# 파이썬으로 보면
def add(x: int, y: int) -> int:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment