Julia| Sys.BINDIR常数 (Julia | Sys.BINDIR Constant)
Sys.BINDIR is a constant of the String type in Julia programming language, it is used to get the full path to the directory that contains Julia's executable file.
Sys.BINDIR是Julia编程语言中String类型的常量,用于获取包含Julia的可执行文件的目录的完整路径。
Syntax:
句法:
Sys.BINDIR
Example:
例:
In this example, we are taking a variable x and assigning it with Sys.BINDIR. We are printing the value and type of x using using println() function and typeof() function.
在此示例中,我们将变量x分配给Sys.BINDIR 。 我们正在使用println()函数和typeof()函数来打印x的值和类型。
# Julia example of Sys.BINDIR
x = Sys.BINDIR
println("x: ", x)
println("typeof(x): ", typeof(x))
Output
输出量
x: /usr/bin
typeof(x): String
Reference: Julia constants
参考: Julia常数
翻译自: https://www.includehelp.com/julia/sys-bindir-constant.aspx