This topic created in 2656 days ago, the information mentioned may be changed or developed.
3 replies • 2019-07-29 23:57:57 +08:00
 |
|
1
ch4ron Jul 26, 2019 via Android
就是 fileinput 的一个模块,当我: for line in fileinput.input('') line = line.replce() print(line,end='') 的时候 line replace 进去的字符会乱码,有没有什么好的解决方法
|
 |
|
2
arrow8899 Jul 26, 2019
for line in fileinput.input(openhook=fileinput.hook_encoded('your_encoding'))
|