File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 90.41 %" , "updated_at" : " 2023-09-01T23:57:28Z " }
1+ {"translation" : " 90.42 %" , "updated_at" : " 2023-09-02T08:56:49Z " }
Original file line number Diff line number Diff line change @@ -424,6 +424,8 @@ msgid ""
424424"your alternative there, as well as adapting the above script to use your "
425425"alternative serialization."
426426msgstr ""
427+ "请注意在某些情况下 pickle 会存在一些安全问题。 如果这些问题对你有影响,你可以换用自己的替代序列化方案,只要重载 "
428+ ":meth:`~SocketHandler.makePickle` 方法并在其中实现你的替代方案,并调整上述脚本以使用这个替代方案。"
427429
428430#: ../../howto/logging-cookbook.rst:770
429431msgid "Running a logging socket listener in production"
@@ -949,6 +951,9 @@ msgid ""
949951"number of files and the size of the files both remain bounded. For this "
950952"usage pattern, the logging package provides a :class:`RotatingFileHandler`::"
951953msgstr ""
954+ "有时您会希望让日志文件增长到一定大小,然后打开一个新的接着记录日志。 "
955+ "您可能希望只保留一定数量的日志文件,当创建文件达到指定数量后将会轮换文件,从而使文件数量和文件大小都保持在一定范围之内。 "
956+ "对于这种使用模式,日志包提供了一个 :class:`RotatingFileHandler`::"
952957
953958#: ../../howto/logging-cookbook.rst:1579
954959msgid ""
@@ -2404,7 +2409,7 @@ msgstr ""
24042409msgid ""
24052410"Adding handlers other than :class:`~logging.NullHandler` to a logger in a "
24062411"library"
2407- msgstr ""
2412+ msgstr "为库中的日志记录器添加 :class:`~logging.NullHandler` 以外的处理句柄 "
24082413
24092414#: ../../howto/logging-cookbook.rst:3931
24102415msgid ""
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ msgid ""
115115"The default timer, which is always time.perf_counter(), returns float "
116116"seconds. An alternative, time.perf_counter_ns, returns integer nanoseconds."
117117msgstr ""
118+ "默认计时器始终为 time.perf_counter(),它返回浮点形式的秒数。 另一个选择是 "
119+ "time.perf_counter_ns,它返回整数形式的纳秒数。"
118120
119121#: ../../library/timeit.rst:95
120122msgid ":func:`time.perf_counter` is now the default timer."
@@ -173,6 +175,8 @@ msgid ""
173175"million. The main statement, the setup statement and the timer function to "
174176"be used are passed to the constructor."
175177msgstr ""
178+ "主语句执行次数 *number*。 这会执行一次设置语句,然后返回执行主语句若干次所需的时间。 默认计时器以浮点形式返回秒数。 "
179+ "参数是循环的次数,默认为一百万次。 主语句、设置语句和要使用的定时器函数都将被传递给构造器。"
176180
177181#: ../../library/timeit.rst:136
178182msgid ""
You can’t perform that action at this time.
0 commit comments