Change lines

print "{0:.0f} kilometers\n{1:.0f} meters\n{2:.1f} centimeters".format(km, m, cm)   #用\n换行

prompt = "it is line one"
prompt += "it is line two"
print prompt.format(...)       #variable相加接行


print "I want to enter a super long line and it is time to change \
the line"    #用\接行

print "I want to enter a super long line and it is time to change" \
    +"the line"    #用\+接行

results matching ""

    No results matching ""