首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
python:判断程序运行在windows平台还是linux平台
python:判断程序运行在windows平台还是linux平台
mac
2022-06-30
18
import
platform
if
platform
.
system
(
)
.
lower
(
)
==
'windows'
:
print
(
"windows"
)
elif
platform
.
system
(
)
.
lower
(
)
==
'linux'
:
print
(
"linux"
)
转载请注明原文地址: https://mac.8miu.com/read-74126.html
最新回复
(
0
)