A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash/zsh: julia: command not found # Windows (WSL2) sudo apt-get update sudo apt-get install julia # Debian apt-get install julia # Ubuntu apt-get install julia # Alpine apk add julia # Arch Linux pacman -S julia # Kali Linux apt-get install julia # Fedora dnf install julia # Raspbian apt-get install julia # Dockerfile dockerfile.run/julia # Docker docker run cmd.cat/julia julia
Julia 用于技术计算的高级、高性能动态编程语言,julia 的一些主要特点包括:
julia
Julia 的使用场景包括科学研究、数据分析、机器学习、高性能计算、数值模拟等。它在那些需要高性能计算的领域特别有用,比如金融建模、生物信息学、气候建模、图像处理等。
julia [option] [program] [args..]
-v --version Display version information -q --quiet Quiet startup without banner --color=<yes|no> Turn colored prompts on (yes) and off (no). -H --home <dir> Load files relative to <dir> -T --tab <size> Set REPL tab width to <size> -e --eval <expr> Evaluate <expr> -E --print <expr> Evaluate and show <expr> -P --post-boot <expr> Evaluate <expr> right after boot -L --load file Load <file> right after boot on all processors -J --sysimage file Start up with the given system image file -p n Run n local processes --machinefile file Run processes on hosts listed in file --no-history Don't load or save history -f --no-startup Don't load ~/.juliarc.jl -F Load ~/.juliarc.jl, then handle remaining inputs -h --help Print a help message displaying command-line arguments
启动 julia 的 REPL(交互 SHELL)模式:
julia
julia 执行带有参数的 Julia 程序 program.jl
:
julia program.jl
julia 的 -e 评估包含 Julia 代码的字符串:
julia -e 'julia_code'
julia 评估 Julia 代码字符串,并向其传递参数
julia -e 'for x in ARGS; println(x); end' arguments
julia 计算表达式并打印结果:
julia -E '(1 - cos(pi/4))/2'
julia 使用 N 个工作进程以并行模式启动 Julia:
julia -p N