programming-examples/python/Basics/Check whether Python shell is executing in 32bit or 64bit mode on OS.py

3 lines
117 B
Python
Raw Normal View History

2019-11-18 14:44:36 +01:00
# For 32 bit it will return 32 and for 64 bit it will return 64
import struct
print(struct.calcsize("P") * 8)