如何在 Julia 中进行多行注释?

Joh*_*ter 9 comments julia

起初我的谷歌搜索只会让我在 github ( https://github.com/JuliaLang/julia/issues/69 )上进行大量讨论。虽然肯定有见地和有趣,但我认为许多人在 stackoverflow 上立即回答这个问题很方便。

Joh*_*ter 13

多行注释可以写#=在注释之前和=#之后。像这样

#=
enter comment here
=#
Run Code Online (Sandbox Code Playgroud)

请注意,这些也是可嵌套的。

  • 另外,您可以内联使用它们:`atan(1 #=hello=#,0)` (6认同)