>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
本篇博客通过Python的platform模块展示了如何获取当前运行环境的架构信息。通过简单的代码演示,我们得知该环境为64位ELF架构。
>>> platform.architecture()
('64bit', 'ELF')

被折叠的 条评论
为什么被折叠?