Julia 中文文档代码的方式,运行代码时也有很多选项: julia [switches] -- [programfile] [args...] Julia 1.1 在 Julia 1.0 中,默认的 --project=@. 选项不会在 Git 仓库的根目录中寻找 Project.toml 文件。从 Julia 1.1 开始,此选项会在其中寻找该文件。 3.1 资源 除了本手册以外,官方网站还提供了一个有用的学习资源列表来帮助新用户学习 julia> test(2, 1) x is greater than y. 变量 relation 是在 if 代码块内部声明的,但可以在外部使用。然而,在利用这种行为的时候,要 保证变量在所有的分支下都进行了定义。对上述函数做如下修改会导致运行时错误 julia> function test(x,y) if x < y relation = "less than" elseif x == Stacktrace: [1] test(::Int64, ::Int64) at ./none:7 if 代码块也会返回一个值,这可能对于一些从其他语言转过来的用户来说不是很直观。这个返回值 就是被执行的分支中最后一个被执行的语句的返回值。所以 julia> x = 3 3 julia> if x > 0 "positive!" else "negative..." end "positive0 码力 | 1238 页 | 4.59 MB | 1 年前3
julia 1.10.10JULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9JULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4JULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia v1.9.4 DocumentationJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.9.0 DEV DocumentationJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1633 页 | 5.23 MB | 1 年前3
Julia 1.9.3 DocumentationJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1644 页 | 5.27 MB | 1 年前3
Julia 1.9.0 rc2 DocumentationJULIA_PKG_USE_CLI_GIT If set to true, Pkg operations which use the git protocol will use an external git executable instead of the default libgit2 library. Julia 1.7 Use of the git executable is only environments provide reproducibility. By checking a project environment into version con- trol—e.g. a git repository—along with the rest of the project's source code, you can reproduce the exact state of "2d15fe94-a1f7-436c-a4d8-07a9a496e01c" git-tree-sha1 = "1bf63d3be994fe83456a03b874b409cfd59a6373" version = "0.1.5" [[Pub]] uuid = "c07ecb7d-0dc9-4db7-8803-fadaaeaf08e1" git-tree-sha1 = "9ebd50e2b0dd1e1100 码力 | 1644 页 | 5.27 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













