查看模块的版本有两种方法,具体如下
1.模块名.version:

>>> import requests
>>> requests.__version__
'2.18.4'

2.help(模块名) 看大概倒数的 VERSION 即版本号

>>>help(requests)
...
VERSION
    2.18.4

AUTHOR
    Kenneth Reitz

FILE
    d:pythonpython35libsite-packagesequests\__init__.py

更多学习内容,请点击Python学习网。

来源:PY学习网:原文地址:https://www.py.cn/article.html

hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » 怎么看python包的版本