语法字符串

  • python中unicode编码转换为中文

    2年前 | 语法字符串 | by:磊落不羁 | 浏览:75

    我们使用python中,遇到爬取网站情况,用到unicode编码,我们需要将它转换为中文,unicode编码转换为中文的方法有四种:使用unicode_escape 解码、使用encode()方法转换,再调用bytes.decode()转换为字符串形式、 使用json.loads 解码(为json 格式)、使用eval(遇到Unicode是通过request

  • 修改python下载源 方法 以及常见的库

    2年前 | 语法字符串 | by:磊落不羁 | 浏览:166

    第一种方式-pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/附国内常用镜像源:阿里云:https://mirrors.aliyun.com/pypi/simple/中国科技大学:https://pypi.mirrors.ust

  • python几个命令

    2年前 | 语法字符串 | by:磊落不羁 | 浏览:63

    1. 查看本机是否安装pythonpython -version2. 查看安装位置import sys sys.executable3.更新pip:python -m pip install --upgrade pip4.使用国内豆瓣镜像pip install wxP

1

TOP