$response = ""
do
{
$response = Read-Host "type something"
}
while ($response -ne "quit")
<#
type something: aaa
type something: bbb
type something: ccc
type something: quit
#>
您也可以关注下方微信公众号获取更多内容
曾垂鑫的技术专栏 博主文章分类:PowerShell ©著作权
文章标签 PowerShell Do while 文章分类 运维
$response = ""
do
{
$response = Read-Host "type something"
}
while ($response -ne "quit")
<#
type something: aaa
type something: bbb
type something: ccc
type something: quit
#>
您也可以关注下方微信公众号获取更多内容
if、for、while语句
C语言循环语句——while、for、do while
/while 语法结构while(表达式)循环语句;while循环流程图比如我们实现: 在屏幕上打印1-10的数字。
for、while、do-while
Python入门示例系列19 循环语句
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M