linux下如何查看python位数/查看centos版本

时间:2018-01-26 00:27:29   收藏:0   阅读:1538

查看python位数

#  python  
Python 2.7.5 (default, Nov  6 2016, 00:28:07)   
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2  
Type "help", "copyright", "credits" or "license" for more information.  
>>> import platform  
>>> platform.architecture()

 

然后就出现了

(‘64bit‘, ‘ELF‘)  

查看centos版本

cat /etc/redhat-release

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!