原文:https://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit-mode-on-os
import struct print(struct.calcsize("P") * 8)
结果显示64位还是32位?