|
|
发表于 2018-5-18 18:30:15
|
显示全部楼层
garypang 发表于 2018-5-18 16:040 w) L' b# D8 I
把 from urllib.parse import quote 这行删掉9 J, R$ ?4 W; z' d
quote(sys.argv[1]) 改为urllib.quote(sys.argv[1]) 试试
6 L1 l* Y3 J7 V5 C( o( l* D ...
& r% N8 u9 i. ^. j% V还是不行- f$ ~3 o- B ~
Query error: The program has returned exit code 1. Traceback (most recent call last): File "D:\translate.py", line 11, in <module> sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') AttributeError: 'file' object has no attribute 'buffer' |
|