File tree 3 files changed +24
-5
lines changed
3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 1
1
## Python语言进阶
2
2
3
+ ### 常用数据结构
4
+
5
+
6
+
7
+ ### 函数的高级用法
8
+
9
+
10
+
11
+ ### 面向对象高级知识
12
+
13
+
14
+
15
+ ### 迭代器和生成器
16
+
17
+
18
+
19
+ ### 并发和异步编程
20
+
Original file line number Diff line number Diff line change @@ -801,7 +801,7 @@ Linux系统的命令通常都是如下所示的格式:
801
801
- `yum list installed`:列出已经安装的软件包,例如`yum list installed | grep zlib`。
802
802
- `yum install`:安装软件包,例如`yum install nginx`。
803
803
- `yum remove`:删除软件包,例如`yum remove nginx`。
804
- - `yum update`:更新软件包,例如`yum update`可以更新所有软件包,而`yum update tar只会更新tar 。
804
+ - `yum update`:更新软件包,例如`yum update`可以更新所有软件包,而`yum update tar`只会更新tar 。
805
805
- `yum check-update`:检查有哪些可以更新的软件包。
806
806
- `yum info`:显示软件包的相关信息,例如`yum info nginx`。
807
807
2. **rpm** - Redhat Package Manager。
@@ -956,11 +956,12 @@ build environment:
956
956
[root@iZwz97tbgo9lkabnat2lo8Z ~]# yum install gcc
957
957
[root@iZwz97tbgo9lkabnat2lo8Z ~]# wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
958
958
[root@iZwz97tbgo9lkabnat2lo8Z ~]# gunzip Python-3.6.5.tgz
959
- [root@iZwz97tbgo9lkabnat2lo8Z ~]# ar -xvf Python-3.6.5.tar
959
+ [root@iZwz97tbgo9lkabnat2lo8Z ~]# tar -xvf Python-3.6.5.tar
960
960
[root@iZwz97tbgo9lkabnat2lo8Z ~]# cd Python-3.6.5
961
961
[root@iZwz97tbgo9lkabnat2lo8Z ~]# ./configure --prefix=/usr/local/python36 --enable-optimizations
962
962
[root@iZwz97tbgo9lkabnat2lo8Z ~]# yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
963
963
[root@iZwz97tbgo9lkabnat2lo8Z ~]# make && make install
964
+ ... 配置环境变量 ...
964
965
[root@iZwz97tbgo9lkabnat2lo8Z ~]# ln -s /usr/local/python36/bin/python3.6 /usr/bin/python3
965
966
[root@iZwz97tbgo9lkabnat2lo8Z ~]# python3 --version
966
967
Python 3.6.5
Original file line number Diff line number Diff line change 6
6
7
7
简单的说,Python是一个“优雅”、“明确”、“简单”的编程语言。
8
8
9
- - 学习曲线低,适合非专业人士
9
+ - 学习曲线低,非专业人士也能上手
10
10
- 开源系统,拥有强大的生态圈
11
11
- 解释型语言,完美的平台可移植性
12
- - 支持面向对象和函数式编程
13
- - 可扩展性,能调用C /C++代码
12
+ - 支持面向对象和函数式编程,动态语言
13
+ - 能够通过调用C /C++代码扩展功能
14
14
- 代码规范程度高,可读性强
15
15
16
16
目前几个比较流行的领域,Python都有用武之地。
You can’t perform that action at this time.
0 commit comments