Basic Tutorial on Python Programming
Tags
Summary
Editor's review
Who it's for
A good fit for
- Students majoring in computer science or related fields
- Career changers or newcomers to the workplace planning to learn programming
- Complete beginners interested in Python programming
- Developers who need a systematic review of Python fundamentals
Not a good fit for
- Readers who have already mastered Python and are seeking advanced topics
- Practitioners who want to quickly master a specific framework or library
Reading tips
- Read the chapters in order and complete the exercises at the end of each chapter
- Practice with actual programming projects or small scripts to deepen understanding
- When encountering difficulties, refer to online resources or community discussions for supplementary learning
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 习题
- 第2章 语法基础
- 2.1 基本数据类型
- 2.2 运算符与表达式
- 2.3 习题
- 第3章 程序控制结构
- 3.1 海龟绘图模块
- 3.2 顺序结构
- 3.3 选择结构
- 3.4 循环结构
- 3.5 习题
- 第4章 数据结构
- 4.1 列表
- 4.2 元组
- 4.3 字典
- 4.4 集合
- 4.5 字符串
- 4.6 习题
- 第5章 函数与模块
- 5.1 函数定义与使用
- 5.2 函数的参数
- 5.3 函数的返回值
- 5.4 变量作用域
- 5.5 函数的嵌套
- 5.6 lambda表达式
- 5.7 常用内置函数
- 5.8 模块
- 5.9 习题
- 第6章 面向对象程序设计
- 6.1 面向对象程序设计
- 6.2 类的定义和实例化
- 6.3 数据成员与成员方法
- 6.4 属性
- 6.5 继承
- 6.6 多态
- 6.7 特殊方法和运算符重载
- 6.8 习题
- 第7章 编程规范
- 7.1 代码规范
- 7.2 注释规范
- 7.3 命名规范
- 7.4 习题
- 第8章 错误和异常
- 8.1 语法错误
- 8.2 异常
- 8.3 异常处理
- 8.4 抛出异常
- 8.5 用户自定义异常
- 8.6 定义清理行为
- 8.7 预定义清理行为
- 8.8 习题
- 第9章 文件操作
- 9.1 文件基础知识
- 9.2 文件基本操作
- 9.3 文件读写操作
- 9.4 文件与目录操作
- 9.5 数据维度
- 9.6 习题
- 第10章 Python第三方库
- 10.1 第三方库的安装
- 10.2 PyInstaller库
- 10.3 jieba库
- 10.4 wordcloud库
- 10.5 Python常用第三方库
- 10.6 习题
FAQ
Is this book suitable for someone with no programming experience at all?
Does the book include actual projects or cases?
Is this edition up to date?
Related on WeRead
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
Wang Shaofeng is an author active in the field of computer education books, though publicly available information about him is limited, and details of his background, education, and professional positions have not been disclosed. Judging from the three works held in the collection, his writing focuses on introductory programming and university-level computer fundamentals, covering Python, Arduino, and general computer literacy. These titles include Python Programming Fundamentals, University Computer Fundamentals (2nd Edition), and Practical Arduino Programming Examples. The titles suggest that his books are aimed at beginners and college classrooms, emphasizing the explanation of basic concepts alongside hands-on examples, and they fall under the categories of examination preparation and comprehensive computer studies. Overall, Wang Shaofeng's editorial style tends toward textbook-oriented, practical material that guides readers from basic to more advanced programming and hardware skills, making his works suitable as introductory study aids and course companion references.
Li Shuying is a Chinese author of programming books. Public information about her is limited, and no clear record of her personal background, education, or professional positions is available. Judging from the two works included in the database, her writing focuses on introductory programming instruction. Her representative works are Python Programming Basics and JavaScript Programming Case Tutorial. These two books deal with Python and JavaScript, two commonly used languages, and fall under the categories of programming design and exam preparation. Her attention thus appears to be on combining syntax, program structure, and case-based exercises to help beginners develop basic programming thinking. Overall, her works tend toward textbook-style, case-based practical writing, emphasizing a step-by-step approach and hands-on practice, and are suitable for both classroom learning and self-study.
Li Tao is an author whose works span a wide range of fields, with 27 titles held in the collection. The subjects he writes on are notably diverse: medical professional titles such as Clinical Psychopathology and the National County-Level Hospital Practical Handbook series volume Psychiatrist's Handbook, as well as clinical technical topics like Minimally Invasive Surgery for Diabetic Retinopathy; education and social issues in The Modernization of Chinese Rural Education; and practical tutorials on software and computing, including Adobe After Effects CC: The Master's Path. He has also written on science popularization and legal thinking, such as Perfect Symmetry: The Accidental Discovery of Fullerenes and 50 Lessons on Cultivating Citizens' Legal Thinking: Think Like a Lawyer, and contributed to applied writing such as the Technical Guidelines for Evaluating Healthy Enterprise Development. Because public information is limited, his personal biography, professional background, and identity remain unclear; from the distribution of his works, one can only see that he combines specialized writing with popular outreach, reaching readers in medicine, education, software, popular science, and law.
Cao Linlin: public information is limited, and only one work by this author is known, Python Programming Fundamentals Tutorial. Judging from the title and the common category “examinations,” the book is aimed at introductory Python teaching and exam preparation, and belongs to the field of basic computer textbooks. In writing, the author appears to focus on organizing fundamental knowledge in an orderly way and explaining key operations, striving to help beginners build programming thinking and prepare for relevant exams. Because biographical details, education, and professional positions are unavailable, no further background can be introduced. Based on the available clues, Cao Linlin’s writing centers on combining basic programming education with exam guidance; although the number of works is small, the subject is clear, and the book is suitable for readers who need to study Python fundamentals systematically or prepare for related examinations.
Public information about Lu Guanshan is limited, and his nationality, dates of birth and death, education, and professional positions cannot be confirmed. His writing can only be understood through the three works held in the library. From Python Programming Basics Tutorial and University Computer Basics Tutorial (2nd Edition) to Arduino Programming Practical Examples Tutorial, it is clear that he focuses on introductory computer education and beginners, covering general computer knowledge, a mainstream programming language, and hardware practice. His books generally follow a tutorial format, explaining concepts progressively and using examples to help readers practice. They are catalogued under computer science and examination categories. Because biographical information is lacking, his personal experience and academic background remain unknown; readers may treat his textbooks as practical introductions to computing and programming.