发布时间:2019-09-22 08:09:12编辑:auto阅读(2160)
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 判断网络连通
50173
49447
40093
37125
31532
28366
27321
22113
22076
20411
69°
657°
480°
467°
685°
606°
1204°
2272°
2098°
1633°