$response = "" while($response -ne "QUIT") { $response = Read-Host "Type something" } <# Type something: aa Type something: quit #>
您也可以关注下方微信公众号获取更多资讯
PowerShell while循环语句示例
原文:https://blog.51cto.com/543925535/2368095