参考以下方法:
[网络链接]https://github.com/bxiaopeng/mkdocs
- NameError: name 'reload' is not defined
添加代码:import importlib
并将代码中的reload(sys)改为importlib.reload(sys)
- AttributeError: module 'sys' has no attribute 'setdefaultencoding'
直接将该语句删除即可
3.NameError: name 'unicode' is not defined
将unicode改为str即可
网友评论