Python Programming Tutorial
Tags
Summary
Editor's review
Who it's for
A good fit for
- Lower-year students in computer science, software engineering, and similar university programs using it as their first programming language textbook
- Self-taught programmers who want to systematically learn Python fundamentals and build a complete knowledge system
- Readers who need a clearly structured, comprehensive reference on Python syntax and basic applications
- Non-developers in IT-related jobs who want to understand Python to support their work
Not a good fit for
- Readers who have already mastered basic Python syntax and want to study specialized advanced applications such as data analysis or artificial intelligence
- Urgent learners seeking many real-world project cases and hoping to get up to speed quickly by completing full projects
Reading tips
- Follow the chapters in order rather than skipping, since later knowledge often depends on concepts from earlier chapters
- Be sure to type in and run every sample code in the book and understand its output; this is the most effective way to learn programming
- Complete the exercises after each chapter carefully; this is key to checking your learning and consolidating memory, and you can review the corresponding chapter whenever you get stuck
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- 版权信息
- 内容提要
- 前言
- 第1章 Python语言简介
- 1.1 什么是Python语言
- 1.2 Python语言的发展历史
- 1.3 Python语言的特点
- 1.4 Python语言的应用
- 1.5 Python的安装
- 1.6 第一个Python程序
- 小结
- 习题
- 第2章 数据类型、运算符及表达式
- 2.1 Python程序基本结构
- 2.2 基本输入和输出
- 2.3 数据类型
- 2.4 运算符
- 小结
- 习题
- 第3章 程序流程控制
- 3.1 控制结构
- 3.2 选择结构
- 3.3 循环结构
- 小结
- 习题
- 第4章 序列
- 4.1 字符串
- 4.2 列表
- 4.3 元组
- 小结
- 习题
- 第5章 映射和集合类型
- 5.1 映射类型——字典
- 5.2 集合类型
- 小结
- 习题
- 第6章 函数
- 6.1 函数的定义
- 6.2 函数的调用
- 6.3 函数参数
- 6.4 函数的嵌套定义和lambda函数定义
- 6.5 函数的递归调用和函数序列调用
- 6.6 函数变量的作用域
- 小结
- 习题
- 第7章 模块和包
- 7.1 命名空间
- 7.2 模块
- 7.3 包
- 小结
- 习题
- 第8章 文件
- 8.1 文件的打开与关闭
- 8.2 文件的读写
- 8.3 文件的备份和删除
- 8.4 文件夹的创建和删除
- 小结
- 习题
- 第9章 面向对象编程
- 9.1 理解Python的面向对象
- 9.2 定义和使用类
- 9.3 类、对象的属性和方法
- 9.4 类的组合
- 9.5 继承与派生
- 9.6 运算符重载和模块中的类
- 9.7 异常处理
- 9.8 实例:用户注册信息
- 小结
- 习题
- 第10章 Python数据库编程
- 10.1 访问SQLite数据库
- 10.2 访问MySQL数据库
- 10.3 实例:加入数据库的用户注册信息系统
- 小结
- 习题
- 第11章 tkinter GUI编程
- 11.1 tkinter编程基础
- 11.2 tkinter组件
- 11.3 实例:基于GUI的用户注册信息系统
- 小结
- 习题
- 第12章 Django框架Web编程
- 12.1 Django框架与MTV模式
- 12.2 创建Django项目
- 12.3 Django项目的高级配置
- 12.4 Template模板
- 12.5 实例:学生信息管理
- 小结
- 习题
FAQ
Is this book suitable for someone with no programming background at all?
Is the code in this book based on Python 2 or Python 3?
What level can I reach after finishing this book?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Chen Peiqiang is a Chinese author of programming books, about whom limited public information is available. Two works can currently be confirmed, one on Python programming and the other on advanced Java development technology. Judging from their titles and categories, his writing is aimed at university teaching and readers new to programming, covering basic syntax, program design methods, and advanced Java development, and his books commonly appear in programming design and examination-related categories. One work is a tutorial and the other a university textbook, suggesting that the author tends to organize knowledge in a systematic, step-by-step textbook style suited to classroom teaching and self-study. Overall, Chen Peiqiang is known mainly for textbook writing, and his works offer learners introductory and advanced references in computer programming education, though information about his personal background remains insufficient.