GitHub 高赞!速通 Python 编程基础手册,被玩出花了!
随着云时代的来临,Python 语言越来越被程序开发人员喜欢和使用,因为其不仅简单易学,而且还有丰富的第三方程序库和相应完善的管理工具。
从命令行脚本程序到 GUI 程序,从图形技术到科学计算,从软件开发到自动化测试,从云计算到虚拟化,所有这些领域都有 Python 的身影。
今天给小伙伴们分享的这份手册采用以任务为导向的编写模式,全面地介绍了 Python 编程基础及其相关知识的应用,讲解了如何利用 Python 的知识解决部分实际问题。

废话不多说,直接介绍内容
第 1 章 准备工作
首先从 Python 语言发展和特性开始介绍,然后介绍如何获取与安装 Python,最后学习 Python 环境的搭建和编辑器的安装,最后编写并运行程序。


第 2 章 Python 基础知识
首先介绍 Python 的固定语法,然后比较全面地介绍 Python 基础变量的特点和使用方法,以及两种基础数据类型的操作、运算等。


第 3 章 Python 数据结构
介绍了 Python 的一些基础数据结构,及其各自的特性和常用基本操作等。


第 4 章 程序流程控制语句
主要介绍 Python 的条件分支结构 if 语句及两种主要循环结构 while 语句和 for 语句,并详细讲解 Python 循环结构中一些函数的用法。


第 5 章 函数
介绍了众多流程控制的语句,在大中型程序中,同一段代码可能会被重复使用,但如果程序由一段冗余的流程控制语句组成,则程序的可读性会变差。使用函数封装这些重复使用的程序段,并加以注释,下次使用的时候直接调用,可以使代码更清晰。


第 6 章 面向对象编程
先介绍面向对象编程,再逐步讲解类和对象的定义、属性及方法。


第 7 章 文件基础
将介绍如何处理文件和保存数据,以便让程序使用得更容易,使用户能够读取 TXT 或 CSV 格式的文件,以及输出为 TXT 或 CSV 格式的文件;介绍如何用 Python 编程实现对计算机文件及文件夹的查询、移动、复制与删除等操作;介绍如何对文件进行压缩与解压等。


限于文章篇幅原因,就展示到这里了,有需要的小伙伴 点击这里凭本文截图即可获取!
评论