want to use another script’s module in one script,it always tell me “a” is not defind,
module asd
export a
a=2
end
include("Julia测试.jl")
print(a)
thanks!!
want to use another script’s module in one script,it always tell me “a” is not defind,
module asd
export a
a=2
end
include("Julia测试.jl")
print(a)
thanks!!
With “include” the module is just defined, but bot not yet “used”:
julia> include("Julia测试.jl")
Main.asd
julia> using Main.asd
julia> a
2