わかさぎのブログ

プログラミング、Atcoderの勉強とか

julia global変数の定義

a=[1,2,3]
function ff(x,y)
    global a
    z=x+y+a[1]
    return z
end

@show(ff(3,4))

pythonと同じ