点击Next进入下一步
选择安装路径,下一步
全选,下一步
直接下一步
等待安装
待会重启,点击Finish
二,安装python编译器首先,去官网下载适合的版本
https://www.python.org/downloads/(官网链接)
然后,进行安装
选择:Add Python 3.8 to PATH
首页,选择第二个,第一个是直接安装固定位置,第二个可以安装到自己想要安装的地方,然后点击下一步。
安装完成。
三,pycharm连接Linux上的python编译器 Linux上安装python编译器1,先在Xshell7上下载
2,解压下载后的安装包
[root@bogon ~]# tar Jxvf Python-3.7.0.tar.xz
3.切换到解压后的文件夹中
[root@bogon ~]# cd Python-3.7.0/ [root@bogon Python-3.7.0]#
4.制定python解释器存放位置
[root@bogon Python-3.7.0]# ./configure --prefix=/usr/local/python3.7.0 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for python3.7... no checking for python3... python3 checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... checking for --without-gcc... no checking for --with-icc... no checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/root/Python-3.7.0': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details
5.执行及最后执行
make
make install
使用windows上的pycharm连接Linux上的Python解释器 Python中的数据类型: 简单的数据类型:number:数字
整型: int 1,2, 3, 0, -1, -2,
浮点型: float 1.11, 0.22
复数:complex a + bj 字符串:str
1.1, 1, '1.1', "1"
''或者""或者'''或者""" 123, 1'2'3
字节:bytes: b'xe4xb8xadxe6x96x87'
布尔: bool: True , False
空: None
复杂的数据类型:
tuple: 元组
list: 列表
dict: 字典
set: 集合



