Python platform - zhongjiajie/zhongjiajie.github.com GitHub Wiki

Python-platform

通过python判断平台是什么类型

system

判断平台的系统

platform.system()
# win 会是 Windows
# linux 会是 Linux

architecture

判断平台的架构

platform.architecture()
# Windows will be : (32bit, WindowsPE)
# Linux will be : (32bit, ELF)
⚠️ **GitHub.com Fallback** ⚠️