如何找到朱莉娅的版本号?有ver()命令吗?

Ste*_*e H 26 julia

我安装了Julia studio 0.4.4,发现它不支持多行注释,#=...=#所以我想找到它正在运行的Julia版本.

在Matlab中,一种类型的命令ver不仅显示了matlab的版本号,还显示了所有安装的工具箱的版本号.

我用谷歌搜索了一段时间,但无法为朱莉娅找到类似的命令.朱莉娅有这样的命令吗?

julia> Version
ErrorException("Version not defined")
julia> ver
ErrorException("ver not defined")
julia> ver()
ErrorException("ver not defined")
julia> Version()
ErrorException("Version not defined")
Run Code Online (Sandbox Code Playgroud)

dam*_*ois 27

使用versioninfo命令:

文档:

versioninfo([verbose::Bool])

    Print information about the version of Julia in use. If the verbose argument 
    is true, detailed system information is shown as well.
Run Code Online (Sandbox Code Playgroud)

  • 还有`VERSION`常量,它只包含版本号. (8认同)
  • 在 julia 提示符中,“versioninfo()”将为您提供版本信息。 (2认同)

Daw*_*y33 24

输入常量VERSION也会显示版本号.

julia> VERSION
v"0.4.0"
Run Code Online (Sandbox Code Playgroud)