-
-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathcmdline.po
More file actions
1384 lines (1195 loc) · 77.1 KB
/
Copy pathcmdline.po
File metadata and controls
1384 lines (1195 loc) · 77.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# cdarlint <cdarling@126.com>, 2019
# Trim21 <i@trim21.me>, 2019
# ppcfish <ppcfish@gmail.com>, 2019
# Freesand Leo <yuqinju@163.com>, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-24 14:40+0000\n"
"PO-Revision-Date: 2019-09-01 02:44+0000\n"
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n"
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:9
msgid "Command line and environment"
msgstr "命令行与环境"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:11
msgid ""
"The CPython interpreter scans the command line and the environment for "
"various settings."
msgstr "CPython 解析器会扫描命令行与环境用于获取各种设置信息。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:16
msgid ""
"Other implementations' command line schemes may differ. See "
":ref:`implementations` for further resources."
msgstr "其他实现的命令行方案可能有所不同。 更多相关资源请参阅 :ref:`implementations`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:23
msgid "Command line"
msgstr "命令行"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:25
msgid "When invoking Python, you may specify any of these options::"
msgstr "对 Python 发起调用时,你可以指定以下的任意选项::"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:29
msgid ""
"The most common use case is, of course, a simple invocation of a script::"
msgstr "当然最常见的用例就是简单地启动执行一个脚本::"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:37
msgid "Interface options"
msgstr "接口选项"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:39
msgid ""
"The interpreter interface resembles that of the UNIX shell, but provides "
"some additional methods of invocation:"
msgstr "解释器接口类似于 UNIX shell,但提供了一些额外的发起调用方法:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:42
msgid ""
"When called with standard input connected to a tty device, it prompts for "
"commands and executes them until an EOF (an end-of-file character, you can "
"produce that with :kbd:`Ctrl-D` on UNIX or :kbd:`Ctrl-Z, Enter` on Windows) "
"is read."
msgstr ""
"当调用时附带连接到某个 tty 设备的标准输入时,它会提示输入命令并执行它们,直到读入一个 EOF(文件结束字符,其产生方式是在 UNIX 中按 "
":kbd:`Ctrl-D` 或在 Windows 中按 :kbd:`Ctrl-Z, Enter`。)"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:45
msgid ""
"When called with a file name argument or with a file as standard input, it "
"reads and executes a script from that file."
msgstr "当调用时附带一个文件名参数或以一个文件作为标准输入时,它会从该文件读取并执行脚本程序。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:47
msgid ""
"When called with a directory name argument, it reads and executes an "
"appropriately named script from that directory."
msgstr "当调用时附带一个目录名参数时,它会从该目录读取并执行具有适当名称的脚本程序。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:49
msgid ""
"When called with ``-c command``, it executes the Python statement(s) given "
"as *command*. Here *command* may contain multiple statements separated by "
"newlines. Leading whitespace is significant in Python statements!"
msgstr ""
"当调用时附带 ``-c command`` 时,它会执行 *command* 所给出的 Python 语句。 在这里 *command* "
"可以包含以换行符分隔的多条语句。 请注意前导空格在 Python 语句中是有重要作用的!"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:52
msgid ""
"When called with ``-m module-name``, the given module is located on the "
"Python module path and executed as a script."
msgstr "当调用时附带 ``-m module-name`` 时,会在 Python 模块路径中查找指定的模块,并将其作为脚本程序执行。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:55
msgid ""
"In non-interactive mode, the entire input is parsed before it is executed."
msgstr "在非交互模式下,会对全部输入先解析再执行。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:57
msgid ""
"An interface option terminates the list of options consumed by the "
"interpreter, all consecutive arguments will end up in :data:`sys.argv` -- "
"note that the first element, subscript zero (``sys.argv[0]``), is a string "
"reflecting the program's source."
msgstr ""
"一个接口选项会终结解释器所读入的选项列表,后续的所有参数将被放入 :data:`sys.argv` -- 请注意其中首个元素即第零项 "
"(``sys.argv[0]``) 会是一个表示程序源的字符串。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:64
msgid ""
"Execute the Python code in *command*. *command* can be one or more "
"statements separated by newlines, with significant leading whitespace as in "
"normal module code."
msgstr ""
"执行 *command* 中的 Python 代码。 *command* "
"可以为一条或以换行符分隔的多条语句,其中前导空格像在普通模块代码中一样具有作用。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:68
msgid ""
"If this option is given, the first element of :data:`sys.argv` will be "
"``\"-c\"`` and the current directory will be added to the start of "
":data:`sys.path` (allowing modules in that directory to be imported as top "
"level modules)."
msgstr ""
"如果给出此选项,:data:`sys.argv` 的首个元素将为 ``\"-c\"`` 并且当前目录将被加入 :data:`sys.path` "
"的开头(以允许该目录中的模块作为最高层级模块被导入)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:76
msgid ""
"Search :data:`sys.path` for the named module and execute its contents as the"
" :mod:`__main__` module."
msgstr "在 :data:`sys.path` 中搜索指定名称的模块并将其内容作为 :mod:`__main__` 模块来执行。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:79
msgid ""
"Since the argument is a *module* name, you must not give a file extension "
"(``.py``). The module name should be a valid absolute Python module name, "
"but the implementation may not always enforce this (e.g. it may allow you to"
" use a name that includes a hyphen)."
msgstr ""
"由于该参数为 *module* 名称,你不应给出文件扩展名 (``.py``)。 模块名称应为绝对有效的 Python "
"模块名称,但具体实现可能并不总是强制要求这一点(例如它可能允许你使用包含连字符的名称)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:84
msgid ""
"Package names (including namespace packages) are also permitted. When a "
"package name is supplied instead of a normal module, the interpreter will "
"execute ``<pkg>.__main__`` as the main module. This behaviour is "
"deliberately similar to the handling of directories and zipfiles that are "
"passed to the interpreter as the script argument."
msgstr ""
"包名称(包括命名空间包)也允许使用。 当所提供的是包名称而非普通模块名称时,解释器将把 ``<pkg>.__main__`` 作为主模块来执行。 "
"此行为特意被设计为与作为脚本参数传递给解释器的目录和 zip 文件的处理方式类似。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:93
msgid ""
"This option cannot be used with built-in modules and extension modules "
"written in C, since they do not have Python module files. However, it can "
"still be used for precompiled modules, even if the original source file is "
"not available."
msgstr ""
"此选项不适用于内置模块和以 C 编写的扩展模块,因为它们并没有对应的 Python 模块文件。 但是它仍然适用于预编译的模块,即使没有可用的初始源文件。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:98
msgid ""
"If this option is given, the first element of :data:`sys.argv` will be the "
"full path to the module file (while the module file is being located, the "
"first element will be set to ``\"-m\"``). As with the :option:`-c` option, "
"the current directory will be added to the start of :data:`sys.path`."
msgstr ""
"如果给出此选项,:data:`sys.argv` 的首个元素将为模块文件的完整路径 (在定位模块文件期间,首个元素将设为 ``\"-m\"``)。 与 "
":option:`-c` 选项一样,当前目录将被加入 :data:`sys.path` 的开头。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:103
msgid ""
":option:`-I` option can be used to run the script in isolated mode where "
":data:`sys.path` contains neither the current directory nor the user's site-"
"packages directory. All :envvar:`PYTHON*` environment variables are ignored,"
" too."
msgstr ""
":option:`-I` 选项可用来在隔离模式下运行脚本,此模式中 :data:`sys.path` 既不包含当前目录也不包含用户的 site-"
"packages 目录。 所有 :envvar:`PYTHON*` 环境变量也会被忽略。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:108
msgid ""
"Many standard library modules contain code that is invoked on their "
"execution as a script. An example is the :mod:`timeit` module::"
msgstr "许多标准库模块都包含作为脚本执行时会被发起调用的代码。 其中的一个例子是 :mod:`timeit` 模块::"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:116
msgid ":func:`runpy.run_module`"
msgstr ":func:`runpy.run_module`"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:116
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:166
msgid "Equivalent functionality directly available to Python code"
msgstr "Python 代码可以直接使用的等效功能"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:118
msgid ":pep:`338` -- Executing modules as scripts"
msgstr ":pep:`338` -- 将模块作为脚本执行"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:121
msgid "Supply the package name to run a ``__main__`` submodule."
msgstr "提供包名称来运行 ``__main__`` 子模块。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:124
msgid "namespace packages are also supported"
msgstr "同样支持命名空间包"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:131
msgid ""
"Read commands from standard input (:data:`sys.stdin`). If standard input is"
" a terminal, :option:`-i` is implied."
msgstr "从标准输入 (:data:`sys.stdin`) 读取命令。 如果标准输入为一个终端,则使用 :option:`-i`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:134
msgid ""
"If this option is given, the first element of :data:`sys.argv` will be "
"``\"-\"`` and the current directory will be added to the start of "
":data:`sys.path`."
msgstr ""
"如果给出此选项,:data:`sys.argv` 的首个元素将为 ``\"-\"`` 并且当前目录将被加入 :data:`sys.path` 的开头。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:143
msgid ""
"Execute the Python code contained in *script*, which must be a filesystem "
"path (absolute or relative) referring to either a Python file, a directory "
"containing a ``__main__.py`` file, or a zipfile containing a ``__main__.py``"
" file."
msgstr ""
"执行 *script* 中的 Python 代码,该参数应为一个(绝对或相对)文件系统路径,指向某个 Python 文件、包含 "
"``__main__.py`` 文件的目录,或包含 ``__main__.py`` 文件的 zip 文件。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:148
msgid ""
"If this option is given, the first element of :data:`sys.argv` will be the "
"script name as given on the command line."
msgstr "如果给出此选项,:data:`sys.argv` 的首个元素将为在命令行中指定的脚本名称。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:151
msgid ""
"If the script name refers directly to a Python file, the directory "
"containing that file is added to the start of :data:`sys.path`, and the file"
" is executed as the :mod:`__main__` module."
msgstr ""
"如果脚本名称直接指向一个 Python 文件,则包含该文件的目录将被加入 :data:`sys.path` 的开头,并且该文件会被作为 "
":mod:`__main__` 模块来执行。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:155
msgid ""
"If the script name refers to a directory or zipfile, the script name is "
"added to the start of :data:`sys.path` and the ``__main__.py`` file in that "
"location is executed as the :mod:`__main__` module."
msgstr ""
"如果脚本名称指向一个目录或 zip 文件,则脚本名称将被加入 :data:`sys.path` 的开头,并且该位置中的 ``__main__.py`` "
"文件会被作为 :mod:`__main__` 模块来执行。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:159
msgid ""
":option:`-I` option can be used to run the script in isolated mode where "
":data:`sys.path` contains neither the script's directory nor the user's "
"site-packages directory. All :envvar:`PYTHON*` environment variables are "
"ignored, too."
msgstr ""
":option:`-I` 选项可用来在隔离模式下运行脚本,此模式中 :data:`sys.path` 既不包含脚本所在目录也不包含用户的 site-"
"packages 目录。 所有 :envvar:`PYTHON*` 环境变量也会被忽略。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:165
msgid ":func:`runpy.run_path`"
msgstr ":func:`runpy.run_path`"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:169
msgid ""
"If no interface option is given, :option:`-i` is implied, ``sys.argv[0]`` is"
" an empty string (``\"\"``) and the current directory will be added to the "
"start of :data:`sys.path`. Also, tab-completion and history editing is "
"automatically enabled, if available on your platform (see :ref:`rlcompleter-"
"config`)."
msgstr ""
"如果没有给出接口选项,则使用 :option:`-i`,``sys.argv[0]`` 将为空字符串 (``\"\"``),并且当前目录会被加入 "
":data:`sys.path` 的开头。 此外,tab 补全和历史编辑会自动启用,如果你的系统平台支持此功能的话 (参见 "
":ref:`rlcompleter-config`)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:175
msgid ":ref:`tut-invoking`"
msgstr ":ref:`tut-invoking`"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:177
msgid "Automatic enabling of tab-completion and history editing."
msgstr "自动启用 tab 补全和历史编辑。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:182
msgid "Generic options"
msgstr "通用选项"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:188
msgid "Print a short description of all command line options."
msgstr "打印全部命令行选项的简短描述。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:194
msgid "Print the Python version number and exit. Example output could be:"
msgstr "打印 Python 版本号并退出。 示例输出信息如下:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:200
msgid "When given twice, print more information about the build, like:"
msgstr "如果重复给出,则打印有关构建的更多信息,例如:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:207
msgid "The ``-VV`` option."
msgstr "``-VV`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:213
msgid "Miscellaneous options"
msgstr "其他选项"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:217
msgid ""
"Issue a warning when comparing :class:`bytes` or :class:`bytearray` with "
":class:`str` or :class:`bytes` with :class:`int`. Issue an error when the "
"option is given twice (:option:`!-bb`)."
msgstr ""
"在将 :class:`bytes` 或 :class:`bytearray` 与 :class:`str` 或是将 :class:`bytes` 与 "
":class:`int` 比较时发出警告。 如果重复给出该选项 (:option:`!-bb`) 则会引发错误。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:221
msgid "Affects comparisons of :class:`bytes` with :class:`int`."
msgstr "影响 :class:`bytes` 与 :class:`int` 的比较。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:226
msgid ""
"If given, Python won't try to write ``.pyc`` files on the import of source "
"modules. See also :envvar:`PYTHONDONTWRITEBYTECODE`."
msgstr ""
"如果给出此选项,Python 将不会试图在导入源模块时写入 ``.pyc`` 文件。 另请参阅 "
":envvar:`PYTHONDONTWRITEBYTECODE`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:232
msgid ""
"Control the validation behavior of hash-based ``.pyc`` files. See :ref:`pyc-"
"invalidation`. When set to ``default``, checked and unchecked hash-based "
"bytecode cache files are validated according to their default semantics. "
"When set to ``always``, all hash-based ``.pyc`` files, whether checked or "
"unchecked, are validated against their corresponding source file. When set "
"to ``never``, hash-based ``.pyc`` files are not validated against their "
"corresponding source files."
msgstr ""
"控制基于哈希值的 ``.pyc`` 文件的验证行为。 参见 :ref:`pyc-invalidation`。 当设为 ``default`` "
"时,已选定和未选定的基于哈希值的字节码缓存文件将根据其默认语义进行验证。 当设为 ``always`` 时,所有基于哈希值的 ``.pyc`` "
"文件,不论是已选定还是未选定的都将根据其对应的源文件进行验证。 当设为 ``never`` 时,基于哈希值的 ``.pyc`` "
"文件将不会根据其对应的源文件进行验证。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:240
msgid ""
"The semantics of timestamp-based ``.pyc`` files are unaffected by this "
"option."
msgstr "基于时间戳的 ``.pyc`` 文件的语义不会受此选项影响。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:246
msgid ""
"Turn on parser debugging output (for expert only, depending on compilation "
"options). See also :envvar:`PYTHONDEBUG`."
msgstr "开启解析器调试输出(限专家使用,依赖于编译选项)。 另请参阅 :envvar:`PYTHONDEBUG`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:252
msgid ""
"Ignore all :envvar:`PYTHON*` environment variables, e.g. "
":envvar:`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set."
msgstr ""
"忽略所有 :envvar:`PYTHON*` 环境变量,例如可能已设置的 :envvar:`PYTHONPATH` 和 "
":envvar:`PYTHONHOME`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:258
msgid ""
"When a script is passed as first argument or the :option:`-c` option is "
"used, enter interactive mode after executing the script or the command, even"
" when :data:`sys.stdin` does not appear to be a terminal. The "
":envvar:`PYTHONSTARTUP` file is not read."
msgstr ""
"当有脚本被作为首个参数传入或使用了 :option:`-c` 选项时,在执行脚本或命令之后进入交互模式,即使是在 :data:`sys.stdin` "
"并不是一个终端的时候。 :envvar:`PYTHONSTARTUP` 文件不会被读取。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:263
msgid ""
"This can be useful to inspect global variables or a stack trace when a "
"script raises an exception. See also :envvar:`PYTHONINSPECT`."
msgstr "这一选项的用处是在脚本引发异常时检查全局变量或者栈跟踪。 另请参阅 :envvar:`PYTHONINSPECT`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:269
msgid ""
"Run Python in isolated mode. This also implies -E and -s. In isolated mode "
":data:`sys.path` contains neither the script's directory nor the user's "
"site-packages directory. All :envvar:`PYTHON*` environment variables are "
"ignored, too. Further restrictions may be imposed to prevent the user from "
"injecting malicious code."
msgstr ""
"在隔离模式下运行 Python。 这将同时应用 -E 和 -s。 在隔离模式下 :data:`sys.path` 既不包含脚本所在目录也不包含用户的 "
"site-packages 目录。 所有 :envvar:`PYTHON*` 环境变量也会被忽略。 还可以施加更进一步的限制以防止用户注入恶意代码。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:280
msgid ""
"Remove assert statements and any code conditional on the value of "
":const:`__debug__`. Augment the filename for compiled (:term:`bytecode`) "
"files by adding ``.opt-1`` before the ``.pyc`` extension (see :pep:`488`). "
"See also :envvar:`PYTHONOPTIMIZE`."
msgstr ""
"移除 assert 语句以及任何以 :const:`__debug__` 的值作为条件的代码。 通过在 ``.pyc`` 扩展名之前添加 "
"``.opt-1`` 来扩充已编译文件 (:term:`bytecode`) 的文件名 (参见 :pep:`488`)。 另请参阅 "
":envvar:`PYTHONOPTIMIZE`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:285
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:295
msgid "Modify ``.pyc`` filenames according to :pep:`488`."
msgstr "依据 :pep:`488` 修改 ``.pyc`` 文件名。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:291
msgid ""
"Do :option:`-O` and also discard docstrings. Augment the filename for "
"compiled (:term:`bytecode`) files by adding ``.opt-2`` before the ``.pyc`` "
"extension (see :pep:`488`)."
msgstr ""
"在启用 :option:`-O` 的同时丢弃文档字符串。 通过在 ``.pyc`` 扩展名之前添加 ``.opt-2`` 来扩展已编译文件 "
"(:term:`bytecode`) 的文件名 (参见 :pep:`488`)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:301
msgid ""
"Don't display the copyright and version messages even in interactive mode."
msgstr "即使在交互模式下也不显示版权和版本信息。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:308
msgid ""
"Turn on hash randomization. This option only has an effect if the "
":envvar:`PYTHONHASHSEED` environment variable is set to ``0``, since hash "
"randomization is enabled by default."
msgstr ""
"开启哈希随机化。 此选项权 :envvar:`PYTHONHASHSEED` 环境变量设置为 ``0`` 时起作用,因为哈希随机化是默认启用的。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:312
msgid ""
"On previous versions of Python, this option turns on hash randomization, so "
"that the :meth:`__hash__` values of str, bytes and datetime are \"salted\" "
"with an unpredictable random value. Although they remain constant within an"
" individual Python process, they are not predictable between repeated "
"invocations of Python."
msgstr ""
"在先前的 Python 版本中,此选项会开启哈希随机化,这样 str, bytes 和 datetime 的 :meth:`__hash__` "
"值将会使用一个不可预测的随机值来“加盐”。 虽然它们在单个 Python 进程中会保持不变,但在重复发起的 Python 调用之间则是不可预测的。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:318
msgid ""
"Hash randomization is intended to provide protection against a denial-of-"
"service caused by carefully-chosen inputs that exploit the worst case "
"performance of a dict construction, O(n^2) complexity. See "
"http://www.ocert.org/advisories/ocert-2011-003.html for details."
msgstr ""
"哈希随机化旨在针对由精心选择的输入引起的拒绝服务攻击提供防护,这种输入利用了构造 dict 在最坏情况下的性能即 O(n^2) 复杂度。 详情请参阅 "
"http://www.ocert.org/advisories/ocert-2011-003.html。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:323
msgid ""
":envvar:`PYTHONHASHSEED` allows you to set a fixed value for the hash seed "
"secret."
msgstr ":envvar:`PYTHONHASHSEED` 允许你为哈希种子密码设置一个固定值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:326
msgid "The option is no longer ignored."
msgstr "此选项不会再被忽略。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:334
msgid ""
"Don't add the :data:`user site-packages directory <site.USER_SITE>` to "
":data:`sys.path`."
msgstr ""
"不要将 :data:`用户 site-packages 目录 <site.USER_SITE>` 添加到 :data:`sys.path`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:339
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:660
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:672
msgid ":pep:`370` -- Per user site-packages directory"
msgstr ":pep:`370` -- 分用户的 site-packages 目录"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:344
msgid ""
"Disable the import of the module :mod:`site` and the site-dependent "
"manipulations of :data:`sys.path` that it entails. Also disable these "
"manipulations if :mod:`site` is explicitly imported later (call "
":func:`site.main` if you want them to be triggered)."
msgstr ""
"禁用 :mod:`site` 的导入及其所附带的基于站点对 :data:`sys.path` 的操作。 如果 :mod:`site` "
"会在稍后被显式地导入也会禁用这些操作 (如果你希望触发它们则应调用 :func:`site.main`)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:352
msgid ""
"Force the stdout and stderr streams to be unbuffered. This option has no "
"effect on the stdin stream."
msgstr "强制 stdout 和 stderr 流不使用缓冲。 此选项对 stdin 流无影响。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:355
msgid "See also :envvar:`PYTHONUNBUFFERED`."
msgstr "另请参阅 :envvar:`PYTHONUNBUFFERED`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:357
msgid "The text layer of the stdout and stderr streams now is unbuffered."
msgstr "stdout 和 stderr 流在文本层现在不使用缓冲。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:363
msgid ""
"Print a message each time a module is initialized, showing the place "
"(filename or built-in module) from which it is loaded. When given twice "
"(:option:`!-vv`), print a message for each file that is checked for when "
"searching for a module. Also provides information on module cleanup at "
"exit. See also :envvar:`PYTHONVERBOSE`."
msgstr ""
"每当一个模块被初始化时打印一条信息,显示其加载位置(文件名或内置模块)。 当重复给出时 "
"(:option:`!-vv`),为搜索模块时所检查的每个文件都打印一条消息。 此外还提供退出时有关模块清理的信息A。 另请参阅 "
":envvar:`PYTHONVERBOSE`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:373
msgid ""
"Warning control. Python's warning machinery by default prints warning "
"messages to :data:`sys.stderr`. A typical warning message has the following"
" form:"
msgstr "警告控制。 Python 的警告机制在默认情况下会向 :data:`sys.stderr` 打印警告消息。 典型的警告消息具有如下形式:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:381
msgid ""
"By default, each warning is printed once for each source line where it "
"occurs. This option controls how often warnings are printed."
msgstr "默认情况下,每个警告都对于其发生所在的每个源行都会打印一次。 此选项可控制警告打印的频繁程度。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:384
msgid ""
"Multiple :option:`-W` options may be given; when a warning matches more than"
" one option, the action for the last matching option is performed. Invalid "
":option:`-W` options are ignored (though, a warning message is printed about"
" invalid options when the first warning is issued)."
msgstr ""
"可以给出多个 :option:`-W` 选项;当某个警告能与多个选项匹配时,将执行最后一个匹配选项的操作。 无效的 :option:`-W` "
"选项将被忽略(但是,在发出第一个警告时会打印有关无效选项的警告消息)。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:389
msgid ""
"Warnings can also be controlled using the :envvar:`PYTHONWARNINGS` "
"environment variable and from within a Python program using the "
":mod:`warnings` module."
msgstr ""
"警告也可以使用 :envvar:`PYTHONWARNINGS` 环境变量以及使用 :mod:`warnings` 模块在 Python "
"程序内部进行控制。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:393
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:688
msgid ""
"The simplest settings apply a particular action unconditionally to all "
"warnings emitted by a process (even those that are otherwise ignored by "
"default)::"
msgstr "最简单的设置是将某个特定操作无条件地应用于进程所发出所有警告 (即使是在默认情况下会忽略的那些警告)::"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:404
msgid ""
"The action names can be abbreviated as desired (e.g. ``-Wi``, ``-Wd``, "
"``-Wa``, ``-We``) and the interpreter will resolve them to the appropriate "
"action name."
msgstr ""
"操作名称可以根据需要进行缩写 (例如 ``-Wi``, ``-Wd``, ``-Wa``, ``-We``),解释器将会把它们解析为适当的操作名称。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:408
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:699
msgid ""
"See :ref:`warning-filter` and :ref:`describing-warning-filters` for more "
"details."
msgstr "请参阅 :ref:`warning-filter` 和 :ref:`describing-warning-filters` 了解更多细节。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:414
msgid ""
"Skip the first line of the source, allowing use of non-Unix forms of "
"``#!cmd``. This is intended for a DOS specific hack only."
msgstr "跳过源中第一行,以允许使用非 Unix 形式的 ``#!cmd``。 这适用于 DOS 专属的破解操作。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:420
msgid ""
"Reserved for various implementation-specific options. CPython currently "
"defines the following possible values:"
msgstr "保留用于各种具体实现专属的选项。 CPython 目前定义了下列可用的值:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:423
msgid "``-X faulthandler`` to enable :mod:`faulthandler`;"
msgstr "``-X faulthandler`` 启用 :mod:`faulthandler`;"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:424
msgid ""
"``-X showrefcount`` to output the total reference count and number of used "
"memory blocks when the program finishes or after each statement in the "
"interactive interpreter. This only works on debug builds."
msgstr ""
"``-X showrefcount`` 当程序结束或在交互解释器中的每条语句之后输出总引用计数和已使用内存块计数。 此选项仅在调试版本中有效。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:427
msgid ""
"``-X tracemalloc`` to start tracing Python memory allocations using the "
":mod:`tracemalloc` module. By default, only the most recent frame is stored "
"in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start tracing "
"with a traceback limit of *NFRAME* frames. See the :func:`tracemalloc.start`"
" for more information."
msgstr ""
"``-X tracemalloc`` 使用 :mod:`tracemalloc` 模块启动对 Python 内存分配的跟踪。 "
"默认情况下,只有最近的帧会保存在跟踪的回溯信息中。 使用 ``-X tracemalloc=NFRAME`` 以启动限定回溯 *NFRAME* "
"帧的跟踪。 请参阅 :func:`tracemalloc.start` 了解详情。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:432
msgid ""
"``-X showalloccount`` to output the total count of allocated objects for "
"each type when the program finishes. This only works when Python was built "
"with ``COUNT_ALLOCS`` defined."
msgstr ""
"``-X showalloccount`` 当程序结束时输出每种类型的已分配对象的总数。 此选项仅当 Python 在定义了 "
"``COUNT_ALLOCS`` 后构建时才会生效。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:435
msgid ""
"``-X int_max_str_digits`` configures the :ref:`integer string conversion "
"length limitation <int_max_str_digits>`. See also "
":envvar:`PYTHONINTMAXSTRDIGITS`."
msgstr ""
"``-X int_max_str_digits`` 将配置 :ref:`整数字符串转换长度限制 <int_max_str_digits>`。 另请参阅 "
":envvar:`PYTHONINTMAXSTRDIGITS`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:438
msgid ""
"``-X importtime`` to show how long each import takes. It shows module name, "
"cumulative time (including nested imports) and self time (excluding nested "
"imports). Note that its output may be broken in multi-threaded application."
" Typical usage is ``python3 -X importtime -c 'import asyncio'``. See also "
":envvar:`PYTHONPROFILEIMPORTTIME`."
msgstr ""
"``-X importtime`` 显示每次导入耗费的时间。 它会显示模块名称,累计时间(包括嵌套的导入)和自身时间(排除嵌套的导入)。 "
"请注意它的输出在多线程应用程序中可能会出错。 典型用法如 ``python3 -X importtime -c 'import asyncio'``。 "
"另请参阅 :envvar:`PYTHONPROFILEIMPORTTIME`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:443
msgid ""
"``-X dev``: enable CPython's \"development mode\", introducing additional "
"runtime checks which are too expensive to be enabled by default. It should "
"not be more verbose than the default if the code is correct: new warnings "
"are only emitted when an issue is detected. Effect of the developer mode:"
msgstr ""
"``-X dev``: 启用 CPython 的“开发模式”,引入额外的运行时检测,这些检测因开销过大而无法默认启用。 "
"如果代码是正确的则它不会比默认输出更详细:新增警告只会在发现问题时才会发出。 开发模式的作用效果:"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:448
msgid "Add ``default`` warning filter, as :option:`-W` ``default``."
msgstr "添加 ``default`` 警告过滤器,即 :option:`-W` ``default``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:449
msgid ""
"Install debug hooks on memory allocators: see the "
":c:func:`PyMem_SetupDebugHooks` C function."
msgstr "在内存分配器上安装调试钩子:参见 :c:func:`PyMem_SetupDebugHooks` C 函数。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:451
msgid ""
"Enable the :mod:`faulthandler` module to dump the Python traceback on a "
"crash."
msgstr "启用 :mod:`faulthandler` 模块以在发生崩溃时转储 Python 回溯信息。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:453
msgid "Enable :ref:`asyncio debug mode <asyncio-debug-mode>`."
msgstr "启用 :ref:`asyncio 调试模式 <asyncio-debug-mode>`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:454
msgid ""
"Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to "
"``True``."
msgstr "将 :attr:`sys.flags` 的 :attr:`~sys.flags.dev_mode` 属性设为 ``True``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:457
msgid ""
"``-X utf8`` enables UTF-8 mode for operating system interfaces, overriding "
"the default locale-aware mode. ``-X utf8=0`` explicitly disables UTF-8 mode "
"(even when it would otherwise activate automatically). See "
":envvar:`PYTHONUTF8` for more details."
msgstr ""
"``-X utf8`` 为操作系统接口启用 UTF-8 模式,覆盖默认的区域感知模式。 ``-X utf8=0`` 显式地禁用 UTF-8 "
"模式(即使在它应当被自动激活的时候)。 请参阅 :envvar:`PYTHONUTF8` 了解详情。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:462
msgid ""
"It also allows passing arbitrary values and retrieving them through the "
":data:`sys._xoptions` dictionary."
msgstr "它还允许传入任意值并通过 :data:`sys._xoptions` 字典来提取这些值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:465
msgid "The :option:`-X` option was added."
msgstr "增加了 :option:`-X` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:468
msgid "The ``-X faulthandler`` option."
msgstr "``-X faulthandler`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:471
msgid "The ``-X showrefcount`` and ``-X tracemalloc`` options."
msgstr "``-X showrefcount`` 与 ``-X tracemalloc`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:474
msgid "The ``-X showalloccount`` option."
msgstr "``-X showalloccount`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:477
msgid "The ``-X importtime``, ``-X dev`` and ``-X utf8`` options."
msgstr "``-X importtime``, ``-X dev`` 与 ``-X utf8`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:480
msgid "The ``-X int_max_str_digits`` option."
msgstr "``-X int_max_str_digits`` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:485
msgid "Options you shouldn't use"
msgstr "不应当使用的选项"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:489
msgid "Reserved for use by Jython_."
msgstr "保留给 Jython_ 使用。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:497
msgid "Environment variables"
msgstr "环境变量"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:499
msgid ""
"These environment variables influence Python's behavior, they are processed "
"before the command-line switches other than -E or -I. It is customary that "
"command-line switches override environmental variables where there is a "
"conflict."
msgstr ""
"这些环境变量会影响 Python 的行为,它们是在命令行开关之前被处理的,但 -E 或 -I 除外。 "
"根据约定,当存在冲突时命令行开关会覆盖环境变量的设置。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:506
msgid ""
"Change the location of the standard Python libraries. By default, the "
"libraries are searched in :file:`{prefix}/lib/python{version}` and "
":file:`{exec_prefix}/lib/python{version}`, where :file:`{prefix}` and "
":file:`{exec_prefix}` are installation-dependent directories, both "
"defaulting to :file:`/usr/local`."
msgstr ""
"更改标准 Python 库的位置。 默认情况下库是在 :file:`{prefix}/lib/python{version}` 和 "
":file:`{exec_prefix}/lib/python{version}` 中搜索,其中 :file:`{prefix}` 和 "
":file:`{exec_prefix}` 是由安装位置确定的目录,默认都位于 :file:`/usr/local`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:512
msgid ""
"When :envvar:`PYTHONHOME` is set to a single directory, its value replaces "
"both :file:`{prefix}` and :file:`{exec_prefix}`. To specify different "
"values for these, set :envvar:`PYTHONHOME` to "
":file:`{prefix}:{exec_prefix}`."
msgstr ""
"当 :envvar:`PYTHONHOME` 被设为单个目录时,它的值会同时替代 :file:`{prefix}` 和 "
":file:`{exec_prefix}`。 要为两者指定不同的值,请将 :envvar:`PYTHONHOME` 设为 "
":file:`{prefix}:{exec_prefix}`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:519
msgid ""
"Augment the default search path for module files. The format is the same as"
" the shell's :envvar:`PATH`: one or more directory pathnames separated by "
":data:`os.pathsep` (e.g. colons on Unix or semicolons on Windows). Non-"
"existent directories are silently ignored."
msgstr ""
"增加模块文件默认搜索路径。 所用格式与终端的 :envvar:`PATH` 相同:一个或多个由 :data:`os.pathsep` "
"分隔的目录路径名称(例如 Unix 上用冒号而在 Windows 上用分号)。 默认忽略不存在的目录。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:524
msgid ""
"In addition to normal directories, individual :envvar:`PYTHONPATH` entries "
"may refer to zipfiles containing pure Python modules (in either source or "
"compiled form). Extension modules cannot be imported from zipfiles."
msgstr ""
"除了普通目录之外,单个 :envvar:`PYTHONPATH` "
"条目可以引用包含纯Python模块的zip文件(源代码或编译形式)。无法从zip文件导入扩展模块。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:528
msgid ""
"The default search path is installation dependent, but generally begins with"
" :file:`{prefix}/lib/python{version}` (see :envvar:`PYTHONHOME` above). It "
"is *always* appended to :envvar:`PYTHONPATH`."
msgstr ""
"默认索引路径依赖于安装路径,但通常都是以 :file:`{prefix}/lib/python{version}` 开始 (参见上文中的 "
":envvar:`PYTHONHOME`)。 它 *总是* 会被添加到 :envvar:`PYTHONPATH`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:532
msgid ""
"An additional directory will be inserted in the search path in front of "
":envvar:`PYTHONPATH` as described above under :ref:`using-on-interface-"
"options`. The search path can be manipulated from within a Python program as"
" the variable :data:`sys.path`."
msgstr ""
"有一个附加目录将被插入到索引路径的 :envvar:`PYTHONPATH` 之前,正如上文中 :ref:`using-on-interface-"
"options` 所描述的。 搜索路径可以在 Python 程序内作为变量 :data:`sys.path` 来进行操作。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:540
msgid ""
"If this is the name of a readable file, the Python commands in that file are"
" executed before the first prompt is displayed in interactive mode. The "
"file is executed in the same namespace where interactive commands are "
"executed so that objects defined or imported in it can be used without "
"qualification in the interactive session. You can also change the prompts "
":data:`sys.ps1` and :data:`sys.ps2` and the hook "
":data:`sys.__interactivehook__` in this file."
msgstr ""
"这如果是一个可读文件的名称,该文件中的 Python 命令会在交互模式的首个提示符显示之前被执行。 "
"该文件会在与交互式命令执行所在的同一命名空间中被执行,因此其中所定义或导入的对象可以在交互式会话中无限制地使用。 你还可以在这个文件中修改提示符 "
":data:`sys.ps1` 和 :data:`sys.ps2` 以及钩子 :data:`sys.__interactivehook__`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:550
msgid ""
"If this is set to a non-empty string it is equivalent to specifying the "
":option:`-O` option. If set to an integer, it is equivalent to specifying "
":option:`-O` multiple times."
msgstr ""
"这如果被设为一个非空字符串,它就相当于指定 :option:`-O` 选项。 如果设为一个整数,则它就相当于多次指定 :option:`-O`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:557
msgid ""
"If this is set, it names a callable using dotted-path notation. The module "
"containing the callable will be imported and then the callable will be run "
"by the default implementation of :func:`sys.breakpointhook` which itself is "
"called by built-in :func:`breakpoint`. If not set, or set to the empty "
"string, it is equivalent to the value \"pdb.set_trace\". Setting this to "
"the string \"0\" causes the default implementation of "
":func:`sys.breakpointhook` to do nothing but return immediately."
msgstr ""
"此变量如果被设定,它会使用加点号的路径标记一个可调用对象。 包含该可调用对象的模块将被导入,随后该可调用对象将由 "
":func:`sys.breakpointhook` 的默认实现来运行,后者自身将由内置的 :func:`breakpoint` 来调用。 "
"如果未设定,或设定为空字符串,则它相当于值 \"pdb.set_trace\"。 将此变量设为字符串 \"0\" 会导致 "
":func:`sys.breakpointhook` 的默认实现不做任何事而直接返回。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:569
msgid ""
"If this is set to a non-empty string it is equivalent to specifying the "
":option:`-d` option. If set to an integer, it is equivalent to specifying "
":option:`-d` multiple times."
msgstr ""
"此变量如果被设为一个非空字符串,它就相当于指定 :option:`-d` 选项。 如果设为一个整数,则它就相当于多次指定 :option:`-d`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:576
msgid ""
"If this is set to a non-empty string it is equivalent to specifying the "
":option:`-i` option."
msgstr "此变量如果被设为一个非空字符串,它就相当于指定 :option:`-i` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:579
msgid ""
"This variable can also be modified by Python code using :data:`os.environ` "
"to force inspect mode on program termination."
msgstr "此变量也可由 Python 代码使用 :data:`os.environ` 来修改以在程序终结时强制检查模式。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:585
msgid ""
"If this is set to a non-empty string it is equivalent to specifying the "
":option:`-u` option."
msgstr "此变量如果被设为一个非空字符串,它就相当于指定 :option:`-u` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:591
msgid ""
"If this is set to a non-empty string it is equivalent to specifying the "
":option:`-v` option. If set to an integer, it is equivalent to specifying "
":option:`-v` multiple times."
msgstr ""
"此变量如果被设为一个非空字符串,它就相当于指定 :option:`-v` 选项。 如果设为一个整数,则它就相当于多次指定 :option:`-v`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:598
msgid ""
"If this is set, Python ignores case in :keyword:`import` statements. This "
"only works on Windows and OS X."
msgstr "如果设置此变量,Python 将忽略 :keyword:`import` 语句中的大小写。 这仅在 Windows 和 OS X 上有效。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:604
msgid ""
"If this is set to a non-empty string, Python won't try to write ``.pyc`` "
"files on the import of source modules. This is equivalent to specifying the"
" :option:`-B` option."
msgstr ""
"此变量如果被设为一个非空字符串,Python 将不会尝试在导入源模块时写入 ``.pyc`` 文件。 这相当于指定 :option:`-B` 选项。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:611
msgid ""
"If this variable is not set or set to ``random``, a random value is used to "
"seed the hashes of str, bytes and datetime objects."
msgstr "如果此变量未设置或设为 ``random``,将使用一个随机值作为 str, bytes 和 datetime 对象哈希运算的种子。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:614
msgid ""
"If :envvar:`PYTHONHASHSEED` is set to an integer value, it is used as a "
"fixed seed for generating the hash() of the types covered by the hash "
"randomization."
msgstr ""
"如果 :envvar:`PYTHONHASHSEED` 被设为一个整数值,它将被作为固定的种子数用来生成哈希随机化所涵盖的类型的 hash() 结果。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:618
msgid ""
"Its purpose is to allow repeatable hashing, such as for selftests for the "
"interpreter itself, or to allow a cluster of python processes to share hash "
"values."
msgstr "它的目的是允许可复现的哈希运算,例如用于解释器本身的自我检测,或允许一组 python 进程共享哈希值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:622
msgid ""
"The integer must be a decimal number in the range [0,4294967295]. "
"Specifying the value 0 will disable hash randomization."
msgstr "该整数必须为一个 [0,4294967295] 范围内的十进制数。 指定数值 0 将禁用哈希随机化。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:629
msgid ""
"If this variable is set to an integer, it is used to configure the "
"interpreter's global :ref:`integer string conversion length limitation "
"<int_max_str_digits>`."
msgstr "如果将此变量设为一个整数,它会被用来配置解释器的全局 :ref:`整数字符串转换长度限制 <int_max_str_digits>`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:637
msgid ""
"If this is set before running the interpreter, it overrides the encoding "
"used for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. "
"Both the ``encodingname`` and the ``:errorhandler`` parts are optional and "
"have the same meaning as in :func:`str.encode`."
msgstr ""
"如果此变量在运行解释器之前被设置,它会覆盖通过 ``encodingname:errorhandler`` 语法设置的 "
"stdin/stdout/stderr 所用编码。 ``encodingname`` 和 ``:errorhandler`` 部分都是可选项,与在 "
":func:`str.encode` 中的含义相同。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:642
msgid ""
"For stderr, the ``:errorhandler`` part is ignored; the handler will always "
"be ``'backslashreplace'``."
msgstr "对于 stderr,``:errorhandler`` 部分会被忽略;处理程序将总是为 ``'backslashreplace'``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:645
msgid "The ``encodingname`` part is now optional."
msgstr "“encodingname” 部分现在是可选的。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:648
msgid ""
"On Windows, the encoding specified by this variable is ignored for "
"interactive console buffers unless :envvar:`PYTHONLEGACYWINDOWSSTDIO` is "
"also specified. Files and pipes redirected through the standard streams are "
"not affected."
msgstr ""
"在 Windows 上,对于交互式控制台缓冲区会忽略此变量所指定的编码,除非还指定了 "
":envvar:`PYTHONLEGACYWINDOWSSTDIO`。 通过标准流重定向的文件和管道则不受其影响。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:655
msgid ""
"If this is set, Python won't add the :data:`user site-packages directory "
"<site.USER_SITE>` to :data:`sys.path`."
msgstr ""
"如果设置了此变量,Python 将不会把 :data:`用户 site-packages 目录 <site.USER_SITE>` 添加到 "
":data:`sys.path`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:665
msgid ""
"Defines the :data:`user base directory <site.USER_BASE>`, which is used to "
"compute the path of the :data:`user site-packages directory "
"<site.USER_SITE>` and :ref:`Distutils installation paths <inst-alt-install-"
"user>` for ``python setup.py install --user``."
msgstr ""
"定义 :data:`用户基准目录 <site.USER_BASE>`,它会在执行 ``python setup.py install --user`` "
"时被用来计算 :data:`用户 site-packages 目录 <site.USER_SITE>` 的路径以及 :ref:`Distutils "
"安装路径 <inst-alt-install-user>`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:677
msgid ""
"If this environment variable is set, ``sys.argv[0]`` will be set to its "
"value instead of the value got through the C runtime. Only works on Mac OS "
"X."
msgstr ""
"如果设置了此环境变量,则 ``sys.argv[0]`` 将被设为此变量的值而不是通过 C 运行时所获得的值。 仅在 Mac OS X 上起作用。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:683
msgid ""
"This is equivalent to the :option:`-W` option. If set to a comma separated "
"string, it is equivalent to specifying :option:`-W` multiple times, with "
"filters later in the list taking precedence over those earlier in the list."
msgstr ""
"此变量等价于 :option:`-W` 选项。 如果被设为一个以逗号分隔的字符串,它就相当于多次指定 "
":option:`-W`,列表中后出现的过滤器优先级会高于列表中先出现的。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/using/cmdline.rst:705
msgid ""
"If this environment variable is set to a non-empty string, "
":func:`faulthandler.enable` is called at startup: install a handler for "
":const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and "
":const:`SIGILL` signals to dump the Python traceback. This is equivalent to"
" :option:`-X` ``faulthandler`` option."
msgstr ""