下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 城镇污水处理厂及配套管网工程商业计划书
- 文明出行守规则小学主题班会课件
- 团结协作共成长:小学团队建设活动小学主题班会课件
- 倡导文明礼仪争做文明学生小学主题班会课件
- 关于2026年办公设备维修事宜通知函6篇范本
- 客户服务调整告知函5篇
- 跨部门协作流程设计指南
- 科技魅力:探索技术与科学的奥秘-小学主题班会课件
- 远程办公效率提升策略手册
- 医院感染风险评估表(适用于病房、换药室、治疗室、注射室)
- T-CACM 1299-2019 中医整脊科临床诊疗指南 腰椎后关节错缝症
- 颈椎术后呼吸道的管理
- 胸外科手术后的呼吸管理课件
- 大学生安全教育(在校篇)学习通超星期末考试答案章节答案2024年
- YBT 2012-2014 连续铸钢板坯
- 上海六年级课外文言文阅读专项训练7篇
- 化工和危险化学品生产经营单位二十条重大隐患判定标准释义(中化协)
- 教师读书分享《给教师的建议》课件
- 摩托车分类与类型
- 2023年湖北省高中学业水平合格性考试地理试卷真题
- 菌毒种管理流程图
评论
0/150
提交评论