下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、精选优质文档-倾情为你奉上Chapter 3 Mathematical Functions, Strings, and Objects1. 2.True3.r = math.radians(47)4.r = math.degrees(math.pi / 7)5.code = ord(1)code = ord(A)code = ord(B)code = ord(a)code = ord(b)ch = chr(40)ch = chr(59)ch = chr(79)ch = chr(85)ch = chr(90)6.print()print()7.u00788.D9.2510.title = cha
2、pter + str(1)11.52312.An object is an entity such as a number, a string, a student, a desk, and a computer. Each object has an id and a type. Objects of the same kind have the same type. You can perform operations on an object. The operations are defined using functions. The functions for the object
3、s are called methods in Python 13.To find the id for an object, use the id(object) function. To find the type for an object, use the type(object) function.14.(b)15.s.lower() is tgeorgians.upper() is tGEORGIAn16.s.strip() is GoodtMorning17.The return returned from invoking the format function is a st
4、ring.18.The width is automatically increased to accommodate the size of the actual value.19. 57.468.957.40 57.4020.5.747e+01 1.2e+075.74e+01 5.74e+0121. 5789.4685789.468 5789.405789.40 5789.4022. 45.747%45.747% 23. 4545 2d2d 24.Programming is fun Programming is fun Programming is fun25.turtle.home()26.turtle.dot(3, red)27.Draw a square28.turtle.speed(number) # Set a number between 1 to 10, the larger, the faster29.turtle.undo()30.turtle.color(red)31.turtle.begin_fill()turtle.color(red)turtle.circle(4
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 修车质检员工作制度
- 公路预检站工作制度
- mcn机构工作制度
- 公司搞卫生工作制度
- 住宿生管理工作制度
- 中草药库房工作制度
- 办公司工作制度模板
- 劳动协理员工作制度
- 医务科查房工作制度
- 医疗康复科工作制度
- 装饰施工现场汇报
- 2025年全国统一高考语文试卷(全国二卷)含答案
- 《帕金森病的认知功能障碍》课件
- 前列腺癌诊疗指南2022年版
- 中国生物科技成果转化蓝皮书-2024
- 烟草职业鉴定三级技能考点
- DB14-T 1734-2025 锅炉用甲醇燃料储供设施技术条件
- 学习2024年《关于加强社会组织规范化建设推动社会组织高质量发展的意见》解读课件
- 危险化学品仓储项目环境影响报告书
- 百级无尘车间设计施工方案
- 抖音直播新人培训学习完整手册
评论
0/150
提交评论