gpt4 book ai didi

tcl - 在 Windows 和 Linux 上运行常见的 TCL 脚本

转载 作者:行者123 更新时间:2023-12-04 16:32:50 25 4
gpt4 key购买 nike

我是 TCL 的新手。如何在 Windows 和 Linux 上运行通用 tcl 脚本?我想先检查平台类型,然后调用适当的 tcl proc。

最佳答案

是的,这奏效了, jackson 。基本上,我想知道我的脚本在什么操作系统上运行,例如,

set OS [lindex $tcl_platform(os) 0]
if { $OS == "Windows" } {
perform this ...
} else {
perform that ...
}

关于tcl - 在 Windows 和 Linux 上运行常见的 TCL 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3261467/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com