码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-01-26 00:27:29      阅读:1538      评论:0      收藏:0      [点我收藏+]

标签:inux   code   linux   efault   64bit   col   edits   import   port   

查看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

 

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

标签:inux   code   linux   efault   64bit   col   edits   import   port   

原文地址:https://www.cnblogs.com/zhouxinfei/p/8353557.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!