如何在python中使用系统变量?

时间:2013-12-05 06:53:41

标签: python batch-file windows-7-x64

如何访问计算机的系统变量,如电池电量或python的电池寿命估算值? - 我不确定“系统可变”是确切的术语)。我正在使用Windows 7。

1 个答案:

答案 0 :(得分:0)

您想要访问环境变量,然后使用Python os package。要不然, 你想在Windows中使用python访问电池状态。 Python Bettery status

相关问题