python2代码转python3代码

 

转换原lib下的python2代码为python3到lib2to3

/Users/anaconda3/envs/test_py3/bin/2to3-3.6  --output-dir=lib2to3 -W -n lib

 

更多2to3 查看 https://docs.python.org/zh-cn/3/library/2to3.html

posted @ 2021-10-26 16:53  云敬轩  阅读(33)  评论(0编辑  收藏  举报