作为脚本语言tcl的"[]"使用尤为重要
经典报错之variable references require preced
错误的情况:
% if {
!string compare $x hell} {
puts "string is hell"
正确的情况:
% set x hello
% if {
![string compare $x hell]}
作为脚本语言tcl的"[]"使用尤为重要
经典报错之variable references require preced
错误的情况:
% if {
!string compare $x hell} {
puts "string is hell"
正确的情况:
% set x hello
% if {
![string compare $x hell]}
1901
2139
1831

被折叠的 条评论
为什么被折叠?