python执行cmd命令

mac2025-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
最新回复(0)