python代码过长的换行

    xiaoxiao2021-03-25  101

    python代码换行就是每行后面加个 \

    举个栗子:

    time = "2017" print "one" + "," \ + "two" \ + ",three" + \ "," + time

    打印出来就是:

    one,two,three,2017

    再举一个栗子:

    print "this line is toooooooooooo \ long"

    打印出来:

    this line is toooooooooooo long

    转载请注明原文地址: https://ju.6miu.com/read-22313.html

    最新回复(0)