开发者

Printing lines in python

How c开发者_StackOverflow社区an i print lines in python like this

print " text here
text here

text here

line here"

I am trying cgi, so i dont have to use print to each line i have to print

thanks


use triple quoted strings

print( """
Something 
You 
can
print
multi-line
""")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜