$num = 22switch ($num){1{Write-Host "this is 1";break}2{Write-Host "this is 2" 1+2 break}default{Write-Host "cpp";break}}
switch,布布扣,bubuko.com
switch
原文:http://www.cnblogs.com/dreamer-fish/p/3724209.html