python代码过长的换行方法
python代码换行就是每行后面加个 \
举个栗子:
time = "2017" print "one" + "," \ + "two" \ + ",three" + \ "," + time
打印出来就是:
one,two,three,2017
再举一个栗子:
print "this line is toooooooooooo \ long"
打印出来:
this line is toooooooooooo long
以上这篇python代码过长的换行方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持【听图阁-专注于Python设计】。