示例. 試試下麵的例子來理解Tcl語言的三元運算符: #!/usr/bin/tclsh set a 10; set b [expr $a == 1 ? 20: 30] puts "Value of b is $b\n" set b [expr $a == 10 ?
確定! 回上一頁