如何查询Tcl的版本?

发布于 2024-08-05 02:45:01 字数 75 浏览 2 评论 0原文

一定有一个简单的方法可以做到这一点,但我找不到它。

我可以在 Tcl 中运行什么命令来使其自省并报告正在运行的自身版本?

There must be an easy way to do this, but I can't find it.

What command can I run within Tcl to get it to introspect and report the version of itself that is running?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

就像说晚安 2024-08-12 02:45:01
info patchlevel

这是 tcl_patchlevel 的值,

请参阅 tcl 教程

info patchlevel

which is the value of tcl_patchlevel

see tcl tutorial

旧夏天 2024-08-12 02:45:01

除了其他选项之外,您还可以使用:

puts $tcl_version

这具有适用于可笑的旧版本 tcl 的优点。

in addition to other options, you can use:

puts $tcl_version

This has the advantage of working for comically old versions of tcl.

清风夜微凉 2024-08-12 02:45:01

你只需要

puts $tcl_patchLevel

You only need to

puts $tcl_patchLevel
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文