常量
Core.nothing — ConstantnothingThe singleton instance of type Nothing, used by convention when there is no value to return (as in a C void function) or when a variable or field holds no value.
Base.PROGRAM_FILE — ConstantPROGRAM_FILEA string containing the script name passed to Julia from the command line. Note that the script name remains unchanged from within included files. Alternatively see @__FILE__.
Base.ARGS — ConstantARGSAn array of the command line arguments passed to Julia, as strings.
Base.C_NULL — ConstantC_NULLThe C null pointer constant, sometimes used when calling external code.
Base.VERSION — ConstantVERSIONA VersionNumber object describing which version of Julia is in use. For details see Version Number Literals.
Base.LOAD_PATH — ConstantLOAD_PATHAn array of paths for using and import statements to consider as project environments or package directories when loading code. It is populated based on the JULIA_LOAD_PATH environment variable if set; otherwise it defaults to ["@", "@v#.#", "@stdlib"]. Entries starting with @ have special meanings:
@refers to the "current active environment", the initial value of which is initially determined by theJULIA_PROJECTenvironment variable or the--projectcommand-line option.@stdlibexpands to the absolute path of the current Julia installation's standard library directory.@namerefers to a named environment, which are stored in depots (seeJULIA_DEPOT_PATH) under theenvironmentssubdirectory. The user's named environments are stored in~/.julia/environmentsso@namewould refer to the environment in~/.julia/environments/nameif it exists and contains aProject.tomlfile. Ifnamecontains#characters, then they are replaced with the major, minor and patch components of the Julia version number. For example, if you are running Julia 1.2 then@v#.#expands to@v1.2and will look for an environment by that name, typically at~/.julia/environments/v1.2.
The fully expanded value of LOAD_PATH that is searched for projects and packages can be seen by calling the Base.load_path() function.
See also: JULIA_LOAD_PATH, JULIA_PROJECT, JULIA_DEPOT_PATH, and Code Loading.
Base.Sys.BINDIR — ConstantSys.BINDIRA string containing the full path to the directory containing the julia executable.
Base.Sys.CPU_THREADS — ConstantSys.CPU_THREADSThe number of logical CPU cores available in the system, i.e. the number of threads that the CPU can run concurrently. Note that this is not necessarily the number of CPU cores, for example, in the presence of hyper-threading.
See Hwloc.jl or CpuId.jl for extended information, including number of physical cores.
Base.Sys.WORD_SIZE — ConstantSys.WORD_SIZEStandard word size on the current machine, in bits.
Base.Sys.KERNEL — ConstantSys.KERNELA symbol representing the name of the operating system, as returned by uname of the build configuration.
Base.Sys.ARCH — ConstantSys.ARCHA symbol representing the architecture of the build configuration.
Base.Sys.MACHINE — ConstantSys.MACHINEA string containing the build triple.
参见:
stdinstdoutstderrENVENDIAN_BOMLibc.MS_ASYNCLibc.MS_INVALIDATELibc.MS_SYNC