当前位置:网站首页>Julia资料收集

Julia资料收集

2022-08-09 10:52:00 1nsights

目前看到的,讲的很不错的Julia中文教程,mark一下,方便以后查阅。Julia教程
地址:https://www.w3cschool.cn/julia/13yv1jf2.html
中文文档:https://juliacn.gitlab.io/JuliaZH.jl/manual/functions.html
知乎上的教程:
https://zhuanlan.zhihu.com/p/24074139
https://zhuanlan.zhihu.com/p/41802723

知识点总结

::符号来声明(或者标注)变量类型,使用 :: 运算符在函数声明中指定返回类型。 这可以将返回值转换为指定的类型。

julia> function g(x, y)::Int8
           return x * y
       end;

julia> typeof(g(1, 2))
Int8

不完全初始化

julia> mutable struct SelfReferential
           obj::SelfReferential
       end

<:运算符代表:左边是右边的子类型,它可以在声明的时候使用,也可以用来做类型判断

https://blog.csdn.net/m0_37696990/article/details/82262060

原网站

版权声明
本文为[1nsights]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_44217573/article/details/114165792