*: normalize colons (#7913)

This commit is contained in:
Seth Falco
2022-03-27 07:25:15 +02:00
committed by GitHub
parent f63fedd585
commit 27ff55fc2e
88 changed files with 144 additions and 144 deletions

View File

@@ -7,15 +7,15 @@
`2to3 {{文件.py}}`
- 将 Python 2 文件转化为 Python 3:
- 将 Python 2 文件转化为 Python 3
`2to3 --write {{文件.py}}`
- 将 Python 2 语言特性转化为 Python 3:
- 将 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --fix={{raw_input}} --fix={{print}}`
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3:
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --nofix={{has_key}} --nofix={{isinstance}}`
@@ -23,10 +23,10 @@
`2to3 --list-fixes`
- 将某一文件夹的所有 Python 2 文件转化为 Python 3:
- 将某一文件夹的所有 Python 2 文件转化为 Python 3
`2to3 --output-dir={{Python 3 文件夹}} --write-unchanged-files --nobackups {{Python 2 文件夹}}`
- 使用多线程运行 2to3:
- 使用多线程运行 2to3
`2to3 --processes={{4}} --output-dir={{Python 3 文件夹}} --write --nobackups --no-diff {{Python 2 文件夹}}`