python 32位、64位确定

1.python 进入交互式命令行,如下:

  python 32位、64位确定

2.执行以下命令:

   import struct;print struct.calcsize("P") * 8