gpt4 book ai didi

julia - 元数据和 METADATA.jl : what are the differences?

转载 作者:行者123 更新时间:2023-12-04 20:42:43 25 4
gpt4 key购买 nike

看完手册,我对这两件事还是不太清楚。两者都是目录,虽然 .jl 让你认为其中一个是 Julia 源文件,但它不是,它是一个目录。两者似乎具有相似的内容:

$ head METADATA.jl/README.md
This is the official METADATA repo for the Julia package manager. See [manual section](http://docs.julialang.org/en/latest/manual/packages/) on packages for how to use the package manager to install and develop packages.

...

$ head METADATA/README.md
This is the official METADATA repo for the Julia package manager. See [manual section](http://docs.julialang.org/en/latest/manual/packages/) on packages for how to use the package manager to install and develop packages.

文档是这样说的:

Fork the main METADATA repository

Cloning METADATA from git://github.com/JuliaLang/METADATA.jl

并使用如下示例:

git remote add USERNAME https://github.com/USERNAME/METADATA.jl.git
^^

cd ~/.julia/v0.5/METADATA 

所以我对术语感到困惑,因为文档似乎在有和没有 .jl 的元数据之间切换。

最佳答案

粗略地说,它们是同一件事。在 Github 上,后缀 .jl 强调这个 repo 是一个 julia package,这是一个命名约定。一般情况下,一个普通的文件夹名是不包含任何后缀的,所以Github上的METADATA.jl就变成了本地机器上的METADATA

关于julia - 元数据和 METADATA.jl : what are the differences?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39829838/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com