首页 > 其他 > 详细

Exercise 9 - printint, printing, printing

时间:2019-09-26 19:17:56      阅读:110      评论:0      收藏:0      [点我收藏+]

 

# 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, or6.
""")

output

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

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

 

2019-09-26

21:38:30

Exercise 9 - printint, printing, printing

原文:https://www.cnblogs.com/petitherisson/p/11593298.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!