摘要: Here are the days: Mon Tue Wed Thu Fri Sat SunHere are the monthons: JanFebMarAprMayJunJulAug There 's something going on here.With the three double - 阅读全文
posted @ 2019-06-19 23:21 犀利犀利 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4'one' 'two' 'three' 'four'True False False True'%r %r %r %r' '%r %r %r %r' '%r %r %r %r' '%r %r %r %r''I had this thing.' 'That you could type 阅读全文
posted @ 2019-06-19 23:15 犀利犀利 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Mary had a little lamb.Its fleece was white as snow.And everywhere that Mary went...........CheeseBurger 翻译 : 玛丽有只小羊羔。 它的羊毛像雪一样白。 不管玛丽去哪里。 …… 奶酪 汉堡 阅读全文
posted @ 2019-06-18 23:06 犀利犀利 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 字符是指你想要展示给别人的、或者是你想要从程序里“导出”的一小段字符。Python 可以通过 文本里的双引号 " 或者单引号 ' 识别出字符串来。 如果你把单引号或者双引号括起来的文本放到 print 后面,它们就会被 python 打印出来。 字符串可以包含格式化字符 %s,这个你之前也见过的。你 阅读全文
posted @ 2019-06-18 23:02 犀利犀利 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 注意%d %s 一 一对应my_name = 'Zed A.Shaw'my_age = 35 # not a liemy_height = 74 # inchesmy_weight = 180 # lbsmy_eyes = 'Blue'my_teeth = 'White'my_hair = 'Bro 阅读全文
posted @ 2019-06-18 22:44 犀利犀利 阅读(120) 评论(0) 推荐(0) 编辑
摘要: space_in_a_car 中的 _ 是 下划线(underscore) 字符。你要自己学会怎样打出这个字符来。 这个符号在变量里通常被用作假想的空格,用来隔开单词。 There are 100 cars available.There are only 30 driver available.T 阅读全文
posted @ 2019-06-18 22:10 犀利犀利 阅读(166) 评论(0) 推荐(0) 编辑
摘要: • + plus 加号 • - minus 减号 • / slash 斜杠 • * asterisk 星号 • % percent 百分号 • < less-than 小于号 • > greater-than 大于号 • <= less-than-equal 小于等于号 • >= greater-t 阅读全文
posted @ 2019-06-17 22:41 犀利犀利 阅读(353) 评论(0) 推荐(0) 编辑
摘要: #号的使用,注释单行# A comment ,this is so you can read your program later.# Anything aftre the # is ignored by python .print ("I could have code like this.")# 阅读全文
posted @ 2019-06-17 22:36 犀利犀利 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 文件名为ex1.pyprint('hello world')print('hello agin')print('I like typing this')print ("This is fun.")print ('Yay! printing')print ("I'd much rather you ' 阅读全文
posted @ 2019-06-17 22:34 犀利犀利 阅读(176) 评论(0) 推荐(0) 编辑
摘要: def main(): #打印1到100的整数 i=1 while i<=100: print(i) i+=1if __name__=='__main__': main() 阅读全文
posted @ 2019-05-30 07:36 犀利犀利 阅读(5941) 评论(0) 推荐(0) 编辑