條件比較 - Study-Area

條件比較 - Study-Area

瀏覽:457
日期:2025-05-09
迴圈控制 Up: 條件敘述 Previous: 條件敘述 Contents 條件比較 shell 字串 [ "str1" = "str2" ] 數值 [ num1 -ne num2 ] perl 字串 if ($str1 ne $str2) 數值 if ($num1 == $num2) C 字串 if (strcmp(str1, str2)) 數值 if (num1 == num2) 要注意數值比較,字串比較,字串處理與邏輯 ......看更多