快速实现mkdocs支持中文搜索的方法
2019-01-28 本文已影响0人
快乐的夏天_eaf9
参考以下方法:
[网络链接]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即可