标签:bash 文件类型 data gis 字符串 echo https mkdir 基础
激活码
类型 | type | 创建方法 |
数字 | int | a = 1 |
字符串 | str | a = ("asv") 注:多个元素就是元组 |
元组 | tuple | b = ("asv","aed",21) |
列表(有序) | list | c = ["asv","aed",21] |
字典(无序) | dict | d ={"v1":"bb","v2":"b3"} |
#!/bin/bash
#install python3.6
#修复bug
yum -y install readline-devel
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1rc1.tgz
mkdir /usr/local/python3
tar -xvf Python-3.6.1rc1.tgz
cd Python-3.6.1rc1
./configure --prefix=/usr/local/python3
make
make install
ln -s /usr/local/python3/bin/python3 /usr/bin/
echo "python.2 write command----python"
python -V
echo "python.2 write command----python3"
python3 -V
再建立新版本python的链接
ln -s /usr/local/python3/bin/python3 /usr/bin/python
这个时候输入
python
就会显示出python的新版本信息标签:bash 文件类型 data gis 字符串 echo https mkdir 基础
原文地址:http://www.cnblogs.com/Gavinkwok/p/6793437.html