Windows PowerShell 講座(4)—變數

Windows PowerShell 講座(4)—變數

瀏覽:801
日期:2024-07-29
$a + $b:是字串加整數,而且 Windows PowerShell 可以將 4 轉換成字串型別,因此會對兩個變數進行字串連接而得到 34。 • $b + $a:是整數加字串,而且 Windows PowerShell 可以將 "3" 轉換成整數型別,因此會對兩個變數進行算術相加而得到7。...看更多