gumblex / zhconv

Simple conversion and localization between simplified and traditional Chinese using tables from MediaWiki.
https://pypi.python.org/pypi/zhconv
MIT License
522 stars 37 forks source link

命令行含义不明 #4

Open cooper1x opened 4 years ago

cooper1x commented 4 years ago

https://pypi.org/project/zhconv/1.4.0/#description

这里我试了半天,不知道怎么输入命令执行

python -mzhconv [-w] {zh-cn|zh-tw|zh-hk|zh-sg|zh-hans|zh-hant|zh} < input > output

我试过以下命令,怎么用都是错的

python3 -mzhconv -w zh-cn ./tc/ ./out
python3 -mzhconv -zh-cn ./tc ./out
python3 -mzhconv zh-cn ./tc ./out
HugoHann commented 2 years ago

https://pypi.org/project/zhconv/1.4.0/#description

这里我试了半天,不知道怎么输入命令执行

python -mzhconv [-w] {zh-cn|zh-tw|zh-hk|zh-sg|zh-hans|zh-hant|zh} < input > output

我试过以下命令,怎么用都是错的

python3 -mzhconv -w zh-cn ./tc/ ./out
python3 -mzhconv -zh-cn ./tc ./out
python3 -mzhconv zh-cn ./tc ./out

我试了几下,发现input文件名要加<>

cooper1x commented 2 years ago

@HugoHann 好吧, 当年硬是没试出来……

cooper1x commented 2 years ago

@HugoHann 刚刚试了下,好像只能写文件名不能写目录。