Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 python 中,您可以使用\行尾的符号来连接下一行的字符串。Julia 中有类似的结构吗?
\
例如,我想将一长行文本记录为一行:
@info "asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd ..... end of line"
如何将该文本包装在两行中,以便在我的编辑器中更容易阅读?
如果您试图避免引入换行符,那么最简单的选择是*用作字符串连接运算符:
*
@info "asdasd asdasd asdasd asdasd asdasd asdasd asdasd " * "asdasd asdasd asdasd asdasd ..... end of line"