zoukankan      html  css  js  c++  java
  • Python requests 环境搭建

    项目中API自动化用的是vs自带的msTest,封装了一操作HTTP,操作DB等等的方法。觉得不是很轻便好用。想试着结合requests库来看下api怎么自动化更好。菜鸟零基础,记录下步骤。

    1. 准备: 

    IDE准备用VS code

    2. 搭环境:

    1. windows装vs code,然后添加python的extension,test一下print hello world好用即可。
    2. 装requests库   pip install requests                       https://www.cnblogs.com/wangjingxiang/p/9757718.html
    3. 测试一下 import requests没有报错即可

    Tip: http://cn.python-requests.org/zh_CN/latest/

  • 相关阅读:
    Linux文件权限
    Linux命令
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
  • 原文地址:https://www.cnblogs.com/TestBetter/p/11560780.html
Copyright © 2011-2022 走看看