我是TCL的新手,我想创建代码来解析来自外部.csv文件的数据。我已经安装了tcllib 1.17,当我运行脚本时,我遇到了以下问题。
找不到包struct :: matrix 执行时 “package require struct :: matrix”...... csv
相同我的代码是
package require Tcl 8.4
package require struct::matrix
package require csv
# Read it in
set m [struct::matrix]
set f [open "document.csv" r]
csv::read2matrix $f $m
close $f
# Now use the matrix ops to work with it.
#set titles [$m get row 0]
#set domains [$m get column 0]
#Display table
puts "Display tables:"
loop y 0 [$m rows] {
loop x 0 [$m columns] {
puts -nonewline [format "%4d" [$m get cell $x $y]]
}
puts ""
}
您对修复此问题有什么想法吗?
答案 0 :(得分:1)
我会说:
ViewWillAppear