我有一个 power-shell GUI 应用程序。在我的应用程序中,我调用了一个 python 脚本。我想显示 python 脚本的输出。
$dog.Add_Click({FixIndefinite})
$Form.Controls.Add($dog)
function FixIndefinite {
try { $outputBox.text = "Welcome"
python .\test.py
}
catch {$outputBox.text = "`nOperation could not be completed"}
最佳答案
$outputBox.text = python .\test.py
关于python - 如何在我的 Powershell 应用程序中使用 python 脚本的输出?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38315735/