首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
python执行cmd命令
python执行cmd命令
mac
2025-09-18
39
import
os result
=
os
.
popen
(
"powershell -NoProfile -ExecutionPolicy Bypass -File test.ps1 hello"
)
print
(
result
.
read
(
)
)
test.ps1
param
(
[
string
]
$a
)
Write
-
Host $a
转载请注明原文地址: https://mac.8miu.com/read-506665.html
最新回复
(
0
)