Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
413 of 16 results
4.
If Statement
If语句
Translated and reviewed by Huang Junjie
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
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
Located in ../../source/conditional.rst:25
7.
Examples are::
范例如下:
Translated and reviewed by Huang Junjie
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
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
Located in ../../source/conditional.rst:51
10.
While Statement
While语句
Translated and reviewed by Huang Junjie
Located in ../../source/conditional.rst:58
11.
The while statement executes a block of code while an expression evaluates true. For example::
While语句会在一个表达式结果为true的时候执行对应块,例如:
Translated and reviewed by Huang Junjie
Located in ../../source/conditional.rst:60
12.
The expression is evaluated when while statement is first reached, and then each time control reaches the end of the block. When the expression return a false value, the statement after the while statement is executed.
当语句首次遇到时,其表达式就会被分析,并每次均控制执行至块尾。当表达式返回false时,它就会执行while语句后的语句。
Translated and reviewed by Huang Junjie
Located in ../../source/conditional.rst:80
13.
Ren'Py does not have continue, break, or for statements. Continue and break statements can be replaced by jumps to labels placed before or after the while loop, respectively. The first example of a while loop, above, shows how a while loop can replace a for statement.
Ren'py不存在继续、暂停或for语句。继续和暂停语句可以使用跳转至其前或其后的label来分别跳出while循环。下述的第一个while循环展示了如何使用while循环语句代替for语句。
Translated and reviewed by Huang Junjie
Located in ../../source/conditional.rst:84
413 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.