【发布时间】:2022-10-24 14:22:10
【问题描述】:
我知道我可以在 Python 中使用input(),但我该如何在 Powershell 中使用呢?
我在回答我自己的问题
【问题讨论】:
标签: powershell
我知道我可以在 Python 中使用input(),但我该如何在 Powershell 中使用呢?
我在回答我自己的问题
【问题讨论】:
标签: powershell
这很简单!只需使用 Read-Host 命令。例如:
Read-Host "Input: "
如果您想将其放入变量中,请执行以下操作:
$input = Read-Host "Input: "
【讨论】: