举个栗子:
1
2
3
4
5
|
time = "2017"
print "one" + "," \
+ "two" \
+ ",three" + \
"," + time
|
打印出来就是:
1
|
one,two,three, 2017
|
再举一个栗子:
1
2
|
print "this line is toooooooooooo \
long "
|
打印出来:
1
|
this line is toooooooooooo long
|
以上这篇python代码过长的换行方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持服务器之家。
原文链接:https://blog.csdn.net/codechelle/article/details/61199212