Python Programming Basics cover

Python Programming Basics

Rating 3.8
Word count
109K words
Chapters
60
ISBN
9787115474490

Tags

Summary

This book adopts a task-oriented approach, comprehensively introducing Python programming fundamentals and their applications, and explaining how to use Python to solve practical problems. The book has 7 chapters. Chapter 1 covers preparation for learning Python, including the origin and development of Python, environment setup, and editor introduction and installation. Chapters 2–5 and 7 mainly cover Python basics, data types, program flow control statements, functions, and file fundamentals. Chapter 6 explains object-oriented programming in Python. Each chapter includes hands-on training and end-of-chapter exercises. Through these exercises and practice, readers can consolidate what they have learned.

Editor's review

Published by Posts & Telecom Press, Python Programming Fundamentals is written by Zhang Jian, who has extensive experience teaching Python. As an introductory programming textbook, it systematically explains the core syntax and applications of Python 3.x. The book is clearly structured, building knowledge progressively from environment setup and basic syntax to functions and object-oriented programming. Particularly noteworthy is the large number of case studies drawn from real life, such as data analysis basics and file operations, which let readers directly appreciate Python's practical value while learning syntax. Compared with similar introductory books, this one explains knowledge points in greater detail and offers dedicated analysis of concepts that are easily confused (such as shallow vs. deep copy and mutable objects). The end-of-chapter exercises are also thoughtfully designed, including both foundational practice and extension questions that encourage reflection. As an introductory text, the book strikes a good balance between depth and breadth, avoiding both excessive simplicity and intimidation of beginners. For readers who want to systematically master Python fundamentals, this is a trustworthy tutorial.

Who it's for

A good fit for

  • Programming beginners with zero foundation who want a systematic introduction to Python
  • Students who need a textbook to accompany coursework
  • Professionals transitioning into data analysis or automation work
  • Junior developers who want to consolidate the finer details of Python syntax

Not a good fit for

  • Experienced senior developers seeking advanced techniques
  • Readers who want to quickly master a specific library (such as TensorFlow)

Reading tips

  1. Read the chapters in order and do not skip the basic syntax sections
  2. Be sure to practice the code examples in the book hands-on; understanding matters more than memorization
  3. When working on exercises, think independently first, then check the reference answers

About the publisher

Posts & Telecom Press China · Founded in 1953

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. 版权信息
  2. 内容提要
  3. 大数据专业系列图书编写委员会
  4. 序
  5. 前言
  6. 第1章 准备工作
  7. 任务1.1 认识Python
  8. 任务1.2 搭建Python环境
  9. 任务1.3 安装PyCharm并创建一个应声虫程序
  10. 小结
  11. 实训 输入/输出
  12. 课后习题
  13. 第2章 Python基础知识
  14. 任务2.1 掌握Python的固定语法
  15. 任务2.2 创建字符串变量并提取里面的数值
  16. 任务2.3 计算圆形的各参数
  17. 小结
  18. 实训
  19. 课后习题
  20. 第3章 Python数据结构
  21. 任务3.1 认识Python数据结构的组成
  22. 任务3.2 创建一个列表(list)并进行增删改查操作
  23. 任务3.3 转换一个列表为元组(tuple)并进行取值操作
  24. 任务3.4 创建一个字典(dict)并进行增删改查操作
  25. 任务3.5 将两个列表转换为集合(set)并进行集合运算
  26. 小结
  27. 实训
  28. 课后习题
  29. 第4章 程序流程控制语句
  30. 任务4.1 实现考试成绩等级划分
  31. 任务4.2 实现一组数的连加与连乘
  32. 任务4.3 使用冒泡排序法排序
  33. 任务4.4 输出数字金字塔
  34. 小结
  35. 实训
  36. 课后习题
  37. 第5章 函数
  38. 任务5.1 自定义函数实现方差输出
  39. 任务5.2 使用匿名函数添加列表元素
  40. 任务5.3 存储并导入函数模块
  41. 小结
  42. 实训
  43. 课后习题
  44. 第6章 面向对象编程
  45. 任务6.1 认识面向对象编程
  46. 任务6.2 创建Car类
  47. 任务6.3 创建Car对象
  48. 任务6.4 迭代Car对象
  49. 任务6.5 产生Land_Rover对象(子类)
  50. 小结
  51. 实训
  52. 课后习题
  53. 第7章 文件基础
  54. 任务7.1 认识文件
  55. 任务7.2 读取.txt文件中的数据
  56. 任务7.3 保存数据为CSV格式文件
  57. 任务7.4 认识os模块及shutil模块
  58. 小结
  59. 实训
  60. 课后习题

FAQ

Is this book suitable for someone who has never programmed before?
Absolutely. The book starts with environment installation and explains programming concepts in detail, making it an introductory tutorial designed for readers with zero background.
Does the book use Python 2 or Python 3?
The book is written for Python 3.x, and all code examples follow Python 3 syntax.
What level can I reach after finishing this book?
You will master core Python syntax and be able to write small scripts and programs, laying a solid foundation for further study in data analysis, web development, and other areas.

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

张健 Author

Public information about Zhang Jian is limited, yet the works under this name span two broad fields: literary studies and medicine. In literature, the author has produced Knowledge and Lyricism: Studies in Song Dynasty Poetics and Studies in Qing Dynasty Poetics (Revised Edition), both in a literary history research series, focusing on the intellectual context and lyrical tradition of classical poetics and showing a solid scholarly orientation. Related works include material connected with A Tale of Two Cities, touching on foreign literature and literary appreciation. In medicine, the author has contributed to several volumes of the Cardiology Practice series, covering cardiovascular disease prevention, hypertension and metabolic diseases, valvular heart disease and pulmonary vascular disease, arrhythmia, and cardiomyopathy and heart failure, with content close to clinical practice. The library holds twenty-one works in total, classified under foreign literature, literary appreciation, medicine, and design, suggesting writing that is both specialized and accessible. In the absence of biographical details, no speculation is offered here.

张良均 Author

Zhang Liangjun is a Chinese author of books on computing and data analysis. Public information about him is limited, and his biography, nationality, and educational background remain unclear. Judging from the seven titles held in the collection, his writing centers on two areas: programming design and data processing. His works range from introductory programming topics such as Python and R to practical content on Excel data acquisition, processing, and analysis, as well as Power BI data analysis and visualization. Aimed at beginners and everyday office application scenarios, the books combine tool operations with examples and emphasize a gradual path from basic syntax to practical analysis, while also serving exam and teaching needs. These titles fall under categories including programming design, general computing, and examinations, and are suitable for Chinese readers who wish to systematically learn data analysis tools and programming fundamentals.

More by the same author

Top rated in the same category