💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
tcl作为一种解释型语言,和bash,fish,python一样,具有很多相似的性质,我们可以使用tcl扩展自己的命令,参数的传递和fish shell类似,使用argv实现 ```tcl yhp@yhp-PC /m/y/_/t/tcl> cat ~/bin/t_bin #!/usr/bin/env tclsh set dir [pwd] puts "$dir" puts "argv:$argv" puts "len:[llength $argv]" ``` 运行结果: ```shell yhp@yhp-PC /m/y/_/t/tcl> t_bin yhp hello /media/yhp/_dde_data/temp/tcl argv:yhp hello len:2 ``` ![](https://img.kancloud.cn/8c/59/8c59a8cdbd939eb5b90185328099fd16_682x291.png)