工程结构
工程结构按照标准的PkgTemplate来建立。参照PkgTemplate的Github项目来执行。
加载模块
首先将工作路径加入到LOAD_PATH中,
push!(LOAD_PATH, dirname(@__FILE__))
println(pwd())
cd(dirname(@__FILE__))
println(pwd())
发现在debug模式下,push!还不够,所以还显式的修改了pwd()。
在主运行脚本中先include对应的.jl文件,在通过using,import调用结构和方法。import可以对相应的函数进行拓展。
Print在一行里
用print函数,在最后加上\r。
print("any text \r")