python 返回系统位数

 

# For 32 bit it will return 32 and for 64 bit it will return 64  
import struct  
print(struct.calcsize("P") * 8)

 

posted @ 2018-11-19 19:43  anobscureretreat  阅读(612)  评论(0编辑  收藏  举报