发布时间:2019-09-22 08:09:12编辑:auto阅读(1815)
import platform
def get_system_Platform():
print ('system and bit'.center(40,'-'))
print(platform.architecture())
print '\n'*3
print ('system and deatial'.center(40,'-'))
print(platform.platform())
print '\n'*3
print ('system'.center(40,'-'))
print(platform.system())
print '\n'*3
print ("python Version".center(40,'-'))
print(platform.python_version())
print '\n'*3
def myPlatform():
sysstr = platform.system()
if(sysstr =="Windows"):
print ("my platform is:"+"Windows platform".center(40,'-'))
elif(sysstr == "Linux"):
print ("my platform is:"+"Linux platform".center(40,'-'))
else:
print ("my platform is:"+"Others platform".center(40,'-'))
get_system_Platform()
myPlatform()
上一篇: python科学计算学习二:matplo
下一篇: python 判断网络连通
47827
46355
37249
34709
29297
25956
24868
19930
19508
17996
5774°
6397°
5908°
5952°
7052°
5896°
5926°
6420°
6386°
7754°