查看模块的版本有两种方法,具体如下
1.模块名.version:
>>>importrequests >>>requests.__version__ '2.18.4'
2.help(模块名) 看大概倒数的 VERSION 即版本号
>>>help(requests) ... VERSION 2.18.4 AUTHOR KennethReitz FILE d:\python\python35\lib\site-packages\requests\__init__.py原文来自:https://www.py.cn
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容