Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
110 of 16 results
1.
Conditional Statements
条件分支语句
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:5
2.
Ren'Py includes several statements that can alter control flow based on expression values. (This is in addition to the :ref:`jump <jump-statement>`, :ref:`call <call-statement>` and :ref:`return <return-statement>` statements, which transfer control unconditionally.
Ren'py包含一些可根据表达式值切换控制流的语句。(这 :ref:`jump <jump-statement>`,:ref:`call <call-statement>`和:ref:`return <return-statement>`语句的增补,这些语句都属于无条件转换控制的语句。)
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:7
3.
Note that is pages discusses statements that can be used inside Ren'Py script. Python code embedded in a Ren'Py game uses the Python while, if, and for statements, but can't embed Ren'Py script code.
请注意,本页讨论的语句可用在Ren'py脚本中。您可以使用在Ren'py游戏中内嵌的Python代码while、if和for语句,但不能使用Ren'py脚本代码。
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:12
4.
If Statement
If语句
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:19
5.
The if statement conditionally executes a block of code if a python expression is true. It consists of an ``if`` clause, zero or more ``elif`` clauses, and an optional``else`` clause.
If语句会有条件地执行区块中的代码,只要其Python表达式为true。它包含一个``if``子句,0个或更多个的``elif``子句和可选的``else``子句。
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:21
6.
Each clause should be on its own logical line, followed by a block of statements. The ``if`` and ``elif`` clauses are followed by an expression, while all clauses end with a colon. (:)
每个子句都必须放在其自己的逻辑行,接续一个块的语句。``if``和``elif``子句接续一个表达式,其所有的子句均以冒号(:)结尾。
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:25
7.
Examples are::
范例如下:
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:29
8.
The expressions in the if statement are evaluated in order, from first to last. When an expression evaluates to true, the block corresponding to that statement is executed. When control reaches the end of the block, it proceeds to the statement following the if statement.
If语句中的表达式按照最初到最后的顺序进行评估。当一个表达式得出true结果后,则其对应的块内的语句就会被执行。当执行到块尾后,它会继续执行if语句后的语句。
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:45
9.
If all expressions evaluate to false, the block associated with the ``else`` clause is executed, if the ``else`` clause is present.
若所有表达式均得出false结果,则``else``子句对应的块就会被执行,只要``else``子句存在。
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:51
10.
While Statement
While语句
Translated and reviewed by Huang Junjie on 2017-02-25
Located in ../../source/conditional.rst:58
110 of 16 results

This translation is managed by Launchpad Simplified Chinese Translators, assigned by Launchpad Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Huang Junjie.