pages*: use " " instead of "=" to separate the options from their arguments, aria2c: fix example (#12726)

This commit is contained in:
Sebastiaan Speck
2024-05-05 13:24:48 +02:00
committed by GitHub
parent 2ecc25e812
commit e06b054c72
38 changed files with 85 additions and 85 deletions

View File

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