运行clock format [clock seconds] -format "%Y%m%d"时出现了“should be “source filename”的错误。
用puts $errorInfo打印错误信息,如下:
wrong # args: should be "source fileName"
while executing
"source -encoding utf-8 [file join $TclLibDir clock.tcl]"
(procedure "::tcl::clock::format" line 3)
invoked from within
"clock format [clock seconds] -format "%Y%m%d""
关于这个网上的信息很少,个人也是觉得应该是source -encoding utf-8 [file join $TclLibDir clock.tcl]命令出错了,我想如果改成source [file join $TclLibDir clock.tcl] 可能可以通过,但是不知道这段的源程序在哪里。希望高手知道了告诉下。