摘要:
# open the logfileset logfile "~/Desktop/abc"set logfile_handle [open $logfile a]# log the command being sent to Mosflmputs $logfile_handle "aaaa"# close the logfileclose $logfile_handle 阅读全文
摘要:
class cc { public method changtextconstructor { args } {}}body cc::changtext { args } {puts $argsreturn [expr $args +3]}set kk [[namespace current]::[cc \#auto] changtext 33] puts $kk 阅读全文