我讨厌范围包括结尾。这是一个我故意删除范围末尾的示例。
N = 100 for x in 0.0 : 2*pi/N : 2*pi*(N-1)/N println(x) end
有什么办法可以避免这个 for 循环的丑陋吗?
julia
julia ×1