4.5 小结 4.5 小结 在本章,我们主要讨论了 Julia 的类型系统。虽然 Julia 属于动态类型的编程语言,但我们却可以为程序中的变量(以及函数中的参数和结果)添加类型标注,并以此让它们的类型固定下来。 如果只用三个词来概括 Julia 的类型系统的话,那么就应该是:动态的、记名的和参数化的。动态指的是变量的类型也可以被改变。记名是指,J...
Strings Strings Core.AbstractChar — Type The AbstractChar type is the supertype of all character implementations in Julia. A character represents a Unicode code point, and c...
gdb 调试提示 显示 Julia 变量 有用的用于检查的 Julia 变量 Useful Julia functions for Inspecting those variables Inserting breakpoints for inspection from gdb Inserting breakpoints upon certain co...
Filesystem Filesystem Base.Filesystem.pwd — Function pwd () -> AbstractString Get the current working directory. Examples julia > pwd () "/home/JuliaUser" ...
Constants Constants Core.nothing — Constant nothing The singleton instance of type Nothing , used by convention when there is no value to return (as in a C void functio...
Random Numbers Random numbers module Random generation functions Subsequences, permutations and shuffling Generators (creation and seeding) ) Hooking into the Random API Genera...