TCL脚本语言:过程调用中用命令行传递参数如何实现

2025-03-07 06:45:16
推荐回答(3个)
回答1:

你好!
用“args“关键字表示支持可变参数。
total
[list
1
2
3]
如果对你有帮助,望采纳。

回答2:

用“args“关键字表示支持可变参数。

total [list 1 2 3]

回答3:

All Tcl scripts have access to three predefined variables.
$argc - number items of arguments passed to a script.
$argv - list of the arguments.
$argv0 - name of the script.