摘要: [Agent]: Good afternoon.Where are you flying today? [Todd]: I'm flying to Stockholm. [Agent]: May I see your passport, please? [Todd]: Yes. Here you a 阅读全文
posted @ 2019-12-12 20:14 carl007 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Python中一个文件夹可以称作为一个包,文件夹下的文件可以称为模块 模块之间可以相互调用 在一个文件下创建两个py文件,里面的变量等,是可以相互调用的 m1.py b = [1,2,3,4] m2.py import m1 print(m1.b) 也可以 import m1 as m (嵌套的层级 阅读全文
posted @ 2019-12-09 20:20 carl007 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #if-elif-else # int(input('请输入你的分数:')) grade = int(input('请输入你的分数:')) if grade -ge 90: print('优秀') elif grade -ge 70: print('良好') elif grade -ge 60: p 阅读全文
posted @ 2019-12-09 19:56 carl007 阅读(661) 评论(0) 推荐(0) 编辑
摘要: #for 主要用于遍历/循环 序列 集合 字典 # 把 a 的值循环赋值给 x a = ['apple','orange','banana','grape'] for x in a: print(x) #提取两次,第一次把a 赋值给 z ,第二次再把z 赋值给 y #for 也可以搭配else使用, 阅读全文
posted @ 2019-12-09 10:01 carl007 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: #while 循环 当条件为真是,则会出现死循环 ''' 如何避免死循环:condition 为一个常量时,一定会出现死循环的状态 或者限制condition 为一定的范围 当while 后面的condition为false 则执行else语句 ''' #while 常用于递归算法 abc = 1 阅读全文
posted @ 2019-12-09 08:50 carl007 阅读(434) 评论(1) 推荐(0) 编辑
摘要: [Pam] : Hi,Sally, we got a postcard from Simon [Sally]: Really? How are Simon and Jack going? Where are they? [Sally]: They're in London. They went th 阅读全文
posted @ 2019-12-08 10:41 carl007 阅读(462) 评论(0) 推荐(0) 编辑
摘要: A: Have you got everying?B: I think so.A: I'll take thatB: Ok,thanks Oh,that''s us then.B: Thanks for inviting us.C: Thanks for coming.B: Your shop's 阅读全文
posted @ 2019-11-29 19:53 carl007 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Todd, Did I tell you? Al and I just bought a house. Really? Congradualuations! thanks ,but we were a little nervous I can image. Buying a house is big 阅读全文
posted @ 2019-11-26 19:49 carl007 阅读(115) 评论(0) 推荐(0) 编辑
摘要: She said her first word at 7 months old. Emlie graduated from a really good unviersity. I was married in 1983. that's when I became an adult. Her husb 阅读全文
posted @ 2019-11-21 19:44 carl007 阅读(493) 评论(0) 推荐(0) 编辑
摘要: verb nun be born birth when were you born? graduate graduation I graduated from the unviersity two years ago. marry marriage Are you married? get prom 阅读全文
posted @ 2019-11-19 20:26 carl007 阅读(97) 评论(0) 推荐(0) 编辑