python 获取当前系统4种方法
2023-09-27 14:27:48 时间
使用platform.system()获取
import platform
print(platform.system())
使用platform.platform()获取
import platform
print(platform.platform())
使用platform.architecture()获取
print(platform.architecture())
使用sys.platform获取
import sys
print(sys.platform)
总写
import sys
import platform
print(platform.system())
print(platform.platform())
print(platform.architecture())
print(sys.platform)
输出
Windows
Windows-10-10.0.15063-SP0
('64bit', 'WindowsPE')
win32
相关文章
- Python 集合(Set)、字典(Dictionary)
- Python文件名后缀判断方法(endswith函数)
- Python 属性与方法 概念理解
- 学会Python有哪些可以做的兼职?所有途径全在这里了...
- 2023年,用Python赚钱的5个方法,教你业余时间赚外快
- 复合数值积分方法以及Python程序实现
- 125 python高级 - 死锁
- 06 python - 输出和输入
- Python安装模块出错(No module named setuptools)解决方法
- python创建数组的方法
- python中super的使用方法
- Python之str方法
- 《Python游戏编程快速上手》——导读
- Python自动化运维工具fabric的安装
- Python基础必掌握的while无限迭代循环方法详解
- Python基础必掌握的集合Set使用
- python库 —— gym retro 的 ROMs文件下载地址
- python-pcl函数说明之一
- Python避坑指南
- Python数据可视化2.5 感知与表达方法
- python之打印日志logging
- Python学习---Python安装与基础1205
- Python-02:分支、循环、函数
- Python requests.post方法中data与json参数区别
- python第四十七课——类属性和函数属性
- 用Python代码操作Azure data
- 【python百度智能云】:Python — 三种获取__VIEWSTATE、__VIEWSTATEGENERATOR、__EVENTVALIDATION方法。
- python 字典
- [Python] index()方法 VS find()方法