习题 9: 打印,打印,打印?

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# 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.
"""

你应该看到的结果?

$ python ex9.py
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.

$

加分习题?

  1. 自己检查结果,记录你犯过的错误,并且在下个练习中尽量不犯同样的错误。

Project Versions

Table Of Contents

Previous topic

习题 8: 打印,打印

Next topic

习题 10: 那是什么?

This Page

鹿鼎娱乐平台招商主管 时时彩进群送红包38 重庆时时彩缩水器黄金版 时时彩软件用什么安卓 时时彩赌博源代码
时时彩开奖走势图 梦之城时时彩平台登录 忆君时时彩软件 时时彩跟计划怎么跟 内蒙古时时彩投注
时时彩开奖网站 奇妙彩票软件 fd能修改时时彩吗 时时彩宣传 时时彩号码预测软件
时时彩快开软件 内蒙古时时彩开奖 江西时时彩开奖异常 重庆时时彩开奖时间表 博悦平台注册