想问下Julia是否支持通过help什么的可以查找包的介绍或者相关网页,文件,以及包中含有的函数及功能?
Julia Math · GitHub,
https://quantecon.org/quantecon-jl这个是Julia的经济学库,其他的呢?希望可以有个列表什么的.
另外包内包含的函数及功能也没有什么好的办法去查看
查询有什么包可以去这 https://juliaobserver.com/ 基本上都是按分类分好的,选star比较高的就好了。
看包内有啥函数可以这样。比如想看DSP包的函数,可以
import DSP DSP. [tab]
按下tab以后自动补全的就是包内的函数。
至于包里面的功能,只能看文档了,毕竟julia有点面向文档编程233333
另外有两个我经常用的函数
help?> methods
search: methods methodswith Method MethodError hasmethod
methods(f, [types])
Returns the method table for f.
If types is specified, returns an array of methods whose types match.
help?> methodswith
search: methodswith
methodswith(typ[, module or function]; supertypes::Bool=false])
Return an array of methods with an argument of type typ.
The optional second argument restricts the search to a particular module or
function (the default is all top-level modules).
If keyword supertypes is true, also return arguments with a parent type of
typ, excluding type Any.
Base.names
— Function.
names(x::Module; all::Bool = false, imported::Bool = false)
Get an array of the names exported by a Module
, excluding deprecated names. If all
is true, then the list also includes non-exported names defined in the module, deprecated names, and compiler-generated names. If imported
is true, then names explicitly imported from other modules are also included.
As a special case, all names defined in Main
are considered “exported”, since it is not idiomatic to explicitly export names from Main
.