Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d455909

Browse files
committed
[po] auto sync bot
1 parent fb44b96 commit d455909

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

tutorial/modules.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgstr ""
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2018-06-27 13:42+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: Jerry Chen <jerrychen9657@gmail.com>, 2017\n"
13+
"Last-Translator: Donghui zhai <trencyclopedia@gmail.com>, 2018\n"
1414
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1515
"MIME-Version: 1.0\n"
1616
"Content-Type: text/plain; charset=UTF-8\n"
@@ -33,6 +33,8 @@ msgid ""
3333
" You may also want to use a handy function that you've written in several "
3434
"programs without copying its definition into each program."
3535
msgstr ""
36+
"如果您从Python编译器退出并再次进入,之前的定义(函数和变量)都会丢失。因此,如果您想编写稍微长些的程序,最好使用文本编辑器为编译器准备输入,并用编译器运行编辑的文件。这被称作编写脚本。随着您的程序变长,您或许会想把它拆分成几个文件,以方便维护。您亦或想在不同的程序中使用一个顺手的函数,"
37+
" 而不必把这个函数复制到每一个程序中去。"
3638

3739
#: ../../tutorial/modules.rst:16
3840
msgid ""
@@ -42,6 +44,8 @@ msgid ""
4244
"modules or into the *main* module (the collection of variables that you have"
4345
" access to in a script executed at the top level and in calculator mode)."
4446
msgstr ""
47+
"为支持这些,Python有一种方法可以把定义放在一个文件里,并把这个文件当作脚本使用,或者在交互式编译器里使用。这个文件被称作模块。模块中的定义可以在其它模块或者主模块(计算器模式下,顶层运行的脚本中,"
48+
" 您可以访问的变量的集合)里被调用。"
4549

4650
#: ../../tutorial/modules.rst:22
4751
msgid ""
@@ -52,12 +56,15 @@ msgid ""
5256
"to create a file called :file:`fibo.py` in the current directory with the "
5357
"following contents::"
5458
msgstr ""
59+
"模块是一个包含Python定义和声明的文件。文件名就是模块名后跟文件后缀 "
60+
"‘.py‘。在一个模块内部,模块名(作为一个字符串)是以一个值为“__name__“的全局变量存在。例如,使用您最喜爱的编辑器在当前目录下创建一个名为‘fibo.py’的文件,"
61+
" 该文件含有以下内容:"
5562

5663
#: ../../tutorial/modules.rst:45
5764
msgid ""
5865
"Now enter the Python interpreter and import this module with the following "
5966
"command::"
60-
msgstr ""
67+
msgstr "现在进入Python编译器,并用以下命令调入该模块:"
6168

6269
#: ../../tutorial/modules.rst:50
6370
msgid ""

0 commit comments

Comments
 (0)