查看Python的版本和位数

1.显示python的版本号

python --version 

2.Python解释器的位数(32/64)

python -c "import struct; print(struct.calcsize('P') * 8)"
posted @ 2024-02-19 14:21  nate_pan  阅读(15)  评论(0编辑  收藏  举报