我需要一种方法来告诉shell在shell中的模式.
我试过看平台模块,但它似乎只是告诉你"关于位体系结构和用于可执行文件的链接格式":二进制编译为64位虽然(我在OS X 10.6上运行)所以它似乎总是报告64位,即使我使用这里描述的方法强制32位模式).
python macos
有谁知道我将如何检测Windows在Python下的位版本.我需要知道这是一种为Program Files使用正确文件夹的方法.
非常感谢
python windows 64-bit
可能重复: 如何在Python中返回系统信息?
例如,要查看Solaris是Solaris X86还是Solaris SPARC?
python architecture operating-system
python ×3
64-bit ×1
architecture ×1
macos ×1
operating-system ×1
windows ×1