开发者

Printing lines in python

开发者 https://www.devze.com 2023-03-02 00:49 出处:网络
How c开发者_StackOverflow社区an i print lines in python like this print \" text here text here text here

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

精彩评论

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