Python--can't initialize sys standard streams

AttributeError: module ‘io’ has no attribute ‘OpenWrapper’

这种情况表示你的module名命名与系统的”io”命名冲突,改掉你的module就行了。

同理:如果是你的文件名.py、类名等,与系统的冲突了,只需要修改你的相应的名称即可。

猜你喜欢

转载自blog.csdn.net/u012782882/article/details/81363267