Bootstrap

python笨办法学习-practice9

打印,打印,打印

# Here's some new strange stuff,remember type it exactly.
#这儿是一些不熟悉的内容,准确的打出它

days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"

print("Here are the days:",days)
print("Here are the months:",months)

print("""
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want,or 5,or 6.
""")
#这里发生了一些事情。用三个双引号。我们可以随心所欲地打字。如果我们想要的话,甚至是4行,或者5行,或者6行。

运行结果

Here are the days: Mon Tue Wed Thu Fri Sat Sun
Here are the months: Jan
Feb
Mar
Apr
May
Jun
Jul
Aug

There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want,or 5,or 6.

;