9
我有一個非常長的原始字符串文字。是否有可能跨多行分割而不添加換行符到字符串?如何在不將新行插入原始字符串的情況下包裝原始字符串?
file.write(r#"This is an example of a line which is well over 100 characters in length. Id like to know if its possible to wrap it! Now some characters to justify using a raw string \foo\bar\baz :)"#)
在Python和C中,例如,您可以簡單地將其寫爲多個字符串文字。
# "some string"
(r"some "
r"string")
是否有可能在Rust中做類似的事情?