$response = "" do { $response = Read-Host "type something" } while ($response -ne "quit") <# type something: aaa type something: bbb type something: ccc type something: quit #>
您也可以关注下方微信公众号获取更多内容
PowerShell do While循环语句示例
原文:https://blog.51cto.com/543925535/2368093