55#
66# Translators:
77# zkonge, 2019
8+ # Freesand Leo <[email protected] >, 201989#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To : \n "
1415"POT-Creation-Date : 2019-01-01 10:14+0900\n "
1516"PO-Revision-Date : 2017-02-16 23:12+0000\n "
16- "Last-Translator : zkonge , 2019\n "
17+ "
Last-Translator :
Freesand Leo <[email protected] > , 2019\n"
1718"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version : 1.0\n "
1920"Content-Type : text/plain; charset=UTF-8\n "
@@ -27,7 +28,7 @@ msgstr ":mod:`getpass` --- 便携式密码输入工具"
2728
2829#: ../../library/getpass.rst:11
2930msgid "**Source code:** :source:`Lib/getpass.py`"
30- msgstr ""
31+ msgstr "**源代码:** :source:`Lib/getpass.py` "
3132
3233#: ../../library/getpass.rst:15
3334msgid "The :mod:`getpass` module provides two functions:"
@@ -42,19 +43,24 @@ msgid ""
4243"(:file:`/dev/tty`) or if that is unavailable to ``sys.stderr`` (this "
4344"argument is ignored on Windows)."
4445msgstr ""
46+ "提示用户输入一个密码且不会回显。 用户会看到字符串 *prompt* 作为提示,其默认值为 ``'Password: '``。 在 Unix "
47+ "上,如有必要提示会使用替换错误句柄写入到文件类对象 *stream*。 *stream* 默认指向控制终端 "
48+ "(:file:`/dev/tty`),如果不可用则指向 ``sys.stderr`` (此参数在 Windows 上会被忽略)。"
4549
4650#: ../../library/getpass.rst:27
4751msgid ""
4852"If echo free input is unavailable getpass() falls back to printing a warning"
4953" message to *stream* and reading from ``sys.stdin`` and issuing a "
5054":exc:`GetPassWarning`."
5155msgstr ""
56+ "如果回显自由输入不可用则 getpass() 将回退为打印一条警告消息到 *stream* 并且从 ``sys.stdin`` 读取同时发出 "
57+ ":exc:`GetPassWarning`。"
5258
5359#: ../../library/getpass.rst:32
5460msgid ""
5561"If you call getpass from within IDLE, the input may be done in the terminal "
5662"you launched IDLE from rather than the idle window itself."
57- msgstr ""
63+ msgstr "如果你从 IDLE 内部调用 getpass,输入可能是在你启动 IDLE 的终端中而非在 IDEL 窗口本身中完成。 "
5864
5965#: ../../library/getpass.rst:37
6066msgid ""
@@ -74,6 +80,9 @@ msgid ""
7480"systems which support the :mod:`pwd` module, otherwise, an exception is "
7581"raised."
7682msgstr ""
83+ "此函数会按顺序检查环境变量 :envvar:`LOGNAME`, :envvar:`USER`, :envvar:`LNAME` 和 "
84+ ":envvar:`USERNAME`,并返回其中第一个被设置为非空字符串的值。 如果均未设置,则在支持 :mod:`pwd` "
85+ "模块的系统上将返回来自密码数据库的登录名,否则将引发一个异常。"
7786
7887#: ../../library/getpass.rst:51
7988msgid ""
0 commit comments