zoukankan      html  css  js  c++  java
  • python-post

    #post
    userinfo={'username':'jack','password':'123456'}
    r=requests.post('http://httpbin.org/post',data=userinfo)
    print(r.text)

    输出结果

    "C:Program FilesAnaconda3python.exe" "D:/pycharm/test2/python gaoji.py"
    {
      "args": {}, 
      "data": "", 
      "files": {}, 
      "form": {
        "password": "123456", 
        "username": "jack"
      }, 
      "headers": {
        "Accept": "*/*", 
        "Accept-Encoding": "gzip, deflate", 
        "Connection": "close", 
        "Content-Length": "29", 
        "Content-Type": "application/x-www-form-urlencoded", 
        "Host": "httpbin.org", 
        "User-Agent": "python-requests/2.11.1"
      }, 
      "json": null, 
      "origin": "114.252.235.73", 
      "url": "http://httpbin.org/post"
    }
  • 相关阅读:
    二人组
    对于软件工程的理解
    shell 远程链接
    shell变量
    shell教程
    正则表达式--练习
    git--版本库
    git-版本回退
    git--时光穿梭
    git安装
  • 原文地址:https://www.cnblogs.com/smile502/p/10288635.html
Copyright © 2011-2022 走看看