当前位置:首页 > Python教程 > python技巧

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

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

 

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


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!