exercise 10

print "I am 6'2\" tall." print 'I am 6\'2" tall.' tabby_cat="\t I'm tabbed in." persian_cat="I'm split\non a...

2016-12-27 08:32:30

阅读数:120

评论数:0

exercise9

days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" print "Here are the days: ", da...

2016-12-27 07:34:05

阅读数:98

评论数:0

ex8

formatter = "%r %r %r %r" # 中间没有标点符号 print formatter % (1, 2, 3, 4) print formatter % ("one", "two", "three&quo...

2016-12-27 07:19:37

阅读数:180

评论数:0

exercise7 more printing

print "Mary had a little lamb." print "Its fleece was white as %s." % 'snow' print "And everywhere that Mary went." pri...

2016-12-27 07:05:20

阅读数:206

评论数:0

exercise 5 多变量

exercise 5 多变量 python所有格式符 %d 格式化整数 %i 格式化整数 %u 格式化无符号整数(废弃,不赞成使用) %o 格式化无符号八进制数 %X 格式化无符号十六进制数(小写字母) %X 格式化无符号十六进制数(大写字母) %e 用科学计数法格式化浮点数 %E ...

2016-12-27 04:30:36

阅读数:165

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭