Posted in Python onJuly 19, 2018
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代码过长的换行方法
- Author -
codechelle声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@