|
3.
|
|
|
Python
|
|
|
|
파이썬
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:17
|
|
4.
|
|
|
The python statement takes a block of python code, and runs that code when control reaches the statement. A basic python statement can be very simple::
|
|
|
|
python 문은 python 코드 블록을 사용하며 제어가 명령문에 도달하면 해당 코드를 실행합니다. 기본적인 파이썬 문장은 매우 간단합니다. ::
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:19
|
|
5.
|
|
|
Python statements can get more complex, when necessary::
|
|
|
|
필요한 경우 Python 문은 더 복잡해질 수 있습니다.
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:26
|
|
6.
|
|
|
There are two modifiers to the python statement that change its behavior:
|
|
|
|
파이썬 명령문에는 동작을 변경하는 두 가지 수정자가 있습니다.
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:33
|
|
7.
|
|
|
``hide``
|
|
|
|
''하이드''
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:36
|
|
8.
|
|
|
If given the hide modifier, the python statement will run the code in an anonymous scope. The scope will be lost when the python block terminates.
|
|
|
|
hide 수정자가 주어지면 python 문은 익명 범위에서 코드를 실행합니다. 파이썬 블록이 종료되면 범위가 손실됩니다.
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:38
|
|
9.
|
|
|
This allows python code to use temporary variables that can't be saved - but it means that the store needs to be accessed as fields on the store object, rather than directly.
|
|
|
|
파이썬 코드는 저장할 수 없는 임시 변수를 사용할 수 있지만 상점은 상점 오브젝트의 필드로 직접 액세스하지 않고 액세스 해야 합니다.
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:42
|
|
10.
|
|
|
``in``
|
|
|
|
''안''
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:46
|
|
11.
|
|
|
The ``in`` modifier takes a name. Instead of executing in the default store, the python code will execute in the store that name.
|
|
|
|
''in ''수정자는 이름을 갖습니다. 기본 상점에서 실행하는 대신, 파이썬 코드는 해당 이름으로 상점에서 실행됩니다.
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:48
|
|
12.
|
|
|
One-line Python Statement
|
|
|
|
파이썬 문장 한 줄
|
|
Translated and reviewed by
이어진
|
|
|
|
Located in
../../source/python.rst:54
|