lsearch 不正常的奇怪问题。我可能在做一些愚蠢的事情。任何想法/帮助将不胜感激!
set mylist {}
lappend mylist a
lappend mylist b
lappend mylist c
set test [lsearch -exact mylist b]
puts "This doesn't work, result should be 1 = $test"
set test2 [lsearch {a b c d e} c]
puts "This works, result should be 2 = $test2"