![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
wlingxiao
喜欢看动画片
展开
-
Python2 和 Python3 在 Windows 上共存方法
1.执行 .py 文件使用 Python2 执行 py -2 test.py 使用 Python3 执行 py -3 test.py还可以在代码最开始的地方添加, Python 要在文件顶部指定编码# Python2 这么写#! python2# -*- coding: utf-8 -*-# Python3 这么写#! python3执行方法 py test.py ,不用添加 -2/-3原创 2016-08-07 12:19:54 · 195 阅读 · 0 评论 -
Python 常用库
import requestsrequests请求GET 请求 requests.get(url) 请求参数 requests.get(url, params={}) 定制请求头 requests.get(url, headers={}) POST 请求 requests.post(url) 请求参数 requests.post(url, data={}) 定制请求头 requests.p原创 2016-08-20 20:19:08 · 320 阅读 · 0 评论