例如,在Python中,一个人可以与'\‘字符(是的,必要的邪恶)打破线。在长生不老药中有可能突破防线吗?
发布于 2015-03-13 11:31:46
长生不老药不像Python那样敏感于空格,所以您可以这样做:
a =
2 + 4 +
3
# a is bound to 9如果您想要中断字符串,最好的方法可能是每行连接一个字符串:
"this is a very long string that " <>
"spans multiple lines because man, " <>
"is it long"发布于 2016-04-13 13:27:25
基于Jose Valim的评论。
iex(1)> "hello\
...(1)> world"
"helloworld"
iex(2)> https://stackoverflow.com/questions/29030309
复制相似问题