返回顶部
摘要: 1. 查看python路径终端输入命令: whereis python 假设你的电脑上同时安装了python2和python3,可以使用使用以下命令分别查看其安装路径: whereis python2 whereis python3 2.查看使用pip安装的软件包默认python3 pip list 阅读全文
posted @ 2020-04-27 19:32 Be-myself 阅读(16786) 评论(0) 推荐(1) 编辑
摘要: 如果要在python2的py文件里面写中文,则必须要添加一行声明文件编码的注释,否则python2会默认使用ASCII编码。 # -*- coding:utf-8 -*- 首先请参考python的PEP http://www.python.org/dev/peps/pep-0263/ 概要如下 1. 阅读全文
posted @ 2020-04-27 14:22 Be-myself 阅读(1902) 评论(0) 推荐(0) 编辑
levels of contents 点击查看具体代码内容