[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
python3版,模仿楼上的写法。
不用curl
用pip install requests 安装requests。
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on 2017-05-22 21:38:48
  4. @author: codegay
  5. """
  6. import requests
  7. txt1 = [r.rstrip() for r in open("1.txt").read()]
  8. txt2 = [r.rstrip() for r in open("2.txt").read()]
  9. txt3 = [r.rstrip() for r in open("3.txt").read()]
  10. txt4 = [r.rstrip() for r in open("4.txt").read()]
  11. url = 'http://bathome.net'
  12. data = zip(txt1,txt2,txt3,txt4)
  13. session = requests.sessions()
  14. for t1,t2,t3,t4 in zip(txt1,txt2,txt3,txt4):
  15.     data = {1:t1,2:t2,3:t3,4:t4}
  16.     session.post(url,data=data)
复制代码
去学去写去用才有进步。安装python3代码存为xx.py 双击运行或右键用IDLE打开按F5运行

TOP

回复 5# zhiweiloli


    →_→ 和我没关系。我也不在乎。
去学去写去用才有进步。安装python3代码存为xx.py 双击运行或右键用IDLE打开按F5运行

TOP

返回列表