前提条件:
python3 环境正常
安装了requests
一 两种方式通过help函数查看官方文档说明
1. 【交互式运行】双击python.exe打开python的交互环境进行直接打开:
输入:>>> help(requests) enter回车
2.【脚本运行】win+R、 cmd进入dos环境,进入脚本所在地址目录,通过运行脚本打开:
脚本内容:
#encoding:utf-8
import requests
help(requests)
进入脚本所在地址目录,执行命令:python interftest.py
注释:我的脚本名称:interftest.py
脚本响应成功,返回:
ps:预告下一节简单的post实例