- OS : Windows 10
查看版本和环境信息
收到了一个打包好的Python环境,拆解一下。
- 查看python版本信息
E:\Python37>python.exe --version
Python 3.7.3rc1
E:\Python37>python.exe
Python 3.7.3rc1 (tags/v3.7.3rc1:69785b2127, Mar 12 2019, 22:37:55) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
rc是Release Candidate的缩写,表示软件的候选发布版,喜欢追求新功能的同学可以看看。
- 查看已安装的包
E:\Python37>python.exe ./Scripts/pip.exe list
Package Version
------------------------- ---------
altgraph 0.17
async-lru 1.0.2
certifi 2021.5.30
cffi 1.15.0
charset-normalizer 2.0.5
CMRESHandler 1.0.0
colorama 0.4.4
......部分截取......
- pip导出环境信息做备份
E:\Python37>python.exe ./Scripts/pip.exe list --format=freeze > requirements.txt
altgraph==0.17
async-lru==1.0.2
certifi==2021.5.30
cffi==1.15.0
charset-normalizer==2.0.5
CMRESHandler==1.0.0
colorama==0.4.4
......部分截取......
学习资料
学习推荐
Python具有开源、跨平台、解释型、交互式等特性,值得学习。
Python的设计哲学:优雅,明确,简单。提倡用一种方法,最好是只有一种方法来做一件事。
代码的书写要遵守规范,这样有助于沟通和理解。
每种语言都有独特的思想,初学者需要转变思维、踏实践行、坚持积累。