- 电子工业出版社
- 9787121398667
- 1-5
- 362549
- 48253356-9
- 平塑勒
- 16开
- 2024-02
- 506
- 288
- 工学
- 软件工程
- 计算机科学与技术
- 本科
作者简介
目录
目录__eol__第1 章 Python 基础 ······················· 1__eol__1.1 Python 语言 ······························· 1__eol__1.1.1 程序设计语言 ··················· 1__eol__1.1.2 Python 语言的产生 ············· 3__eol__1.1.3 Python 语言的特点 ············· 3__eol__1.1.4 Python 语言的应用场景 ······· 5__eol__1.2 Python 的安装 ···························· 6__eol__1.2.1 下载 Python ······················ 6__eol__1.2.2 安装 Python ······················ 7__eol__1.3 Python 程序的书写与运行 ············· 8__eol__1.3.1 使用IDLE 交互式环境········ 8__eol__1.3.2 程序文件的建立与运行 ······· 9__eol__1.4 简单的Python 程序 ····················· 11__eol__1.4.1 输入、处理、输出__eol__(IPO) ···························· 11__eol__1.4.2 常见的语法要素 ···············12__eol__1.5 其他集成开发工具 ······················16__eol__1.5.1 Visual Studio Code·············16__eol__1.5.2 PyCharm·························17__eol__1.5.3 Anaconda ························17__eol__本章小结 ········································19__eol__习题1 ············································19__eol__第2 章 数据与运算 ·······················20__eol__2.1 变量与数据类型 ·························20__eol__2.1.1 数据、常量与变量 ············20__eol__2.1.2 基本数据类型 ··················20__eol__2.1.3 类型的判断与转换 ············22__eol__2.2 算术运算及数学函数 ···················23__eol__2.2.1 运算符与表达式 ···············23__eol__2.2.2 算术运算符 ·····················23__eol__2.2.3 内置函数 ························25__eol__2.2.4 math 模块中的数学函数 ·····27__eol__2.3 关系运算及逻辑运算 ···················28__eol__2.3.1 关系运算 ························28__eol__2.3.2 逻辑运算 ························29__eol__2.3.3 运算符的优先级与结合性 ···30__eol__2.4 字符串运算及格式化 ···················31__eol__2.4.1 字符串的常见运算 ············31__eol__2.4.2 数据的显示与格式化 ·········32__eol__本章小结 ········································34__eol__习题2 ············································34__eol__第3 章 语句与控制结构 ·················36__eol__3.1 基本语句及顺序结构 ···················36__eol__3.1.1 三种基本流程及流程图 ······36__eol__3.1.2 简单语句 ························37__eol__3.2 分支语句 ··································38__eol__3.2.1 if 语句 ···························38__eol__3.2.2 if 语句的嵌套 ··················40__eol__3.2.3 elif 语句 ·························40__eol__3.2.4 应用举例——自动出题__eol__并判分 ···························42__eol__3.3 循环语句 ··································44__eol__3.3.1 for 循环语句 ····················44__eol__3.3.2 while 循环语句 ················47__eol__3.3.3 循环的五要素及153__eol__检查法 ···························48__eol__3.3.4 循环语句的嵌套 ···············49__eol__3.4 循环语句的应用 ·························50__eol__3.4.1 绘图 ······························50__eol__3.4.2 数列求和 ························54__eol__3.4.3 字符串加密 ·····················55__eol__3.4.4 跳转语句 ························56__eol__本章小结 ········································57__eol__习题3 ············································57__eol__第4 章 组合数据类型 ····················59__eol__4.1 列表 ········································59__eol__4.1.1 列表是一个序列 ···············59__eol__4.1.2 列表的操作 ·····················60__eol__4.1.3 列表的遍历 ·····················63__eol__4.1.4 列表的方法 ·····················64__eol__4.2 字典 ········································65__eol__4.2.1 字典即映射 ·····················65__eol__4.2.2 字典的操作 ·····················66__eol__4.2.3 字典的遍历 ·····················68__eol__4.2.4 字典的方法 ·····················68__eol__4.3 元组与集合 ·······························69__eol__4.3.1 元组 ······························69__eol__4.3.2 集合 ······························71__eol__4.3.3 列表、字典、元组、集合的__eol__区别与转换 ·····················73__eol__4.4 组合数据的应用 ·························76__eol__4.4.1 列表在统计中的应用 ·········76__eol__4.4.2 字典在统计中的应用 ·········77__eol__4.4.3 蒙特卡罗法 ·····················78__eol__本章小结 ········································82__eol__习题4 ············································82__eol__第5 章 函数 ································84__eol__5.1 函数的定义与调用 ······················84__eol__5.1.1 函数的概念 ·····················84__eol__5.1.2 定义函数 ························85__eol__5.1.3 任务分解与代码重用 ·········86__eol__5.2 函数中的变量与参数传递 ·············91__eol__5.2.1 函数调用的执行流程 ·········91__eol__5.2.2 变量的生