Python模拟http post,python模拟post,import sys,
Python模拟http post,python模拟post,import sys,
import sys, urllib2, urllibzipcode = 'S2S 1R8'url = 'http://www.wunderground.com/cgi-bin/findweather/getForecast'data = urllib.urlencode([('query', zipcode)])req = urllib2.Request(url)fd = urllib2.urlopen(req, data)while 1: data = fd.read(1024) if not len(data): break sys.stdout.write(data)
相关内容
- oct and hex function,octhex,print oct(64
- Intelligent diff between text files (Tim Peters),diffpeters,#! /usr
- dir() and help() functions interactive aids,,#dir() and h
- python beautifulsoup 获得innerHTML内容,,python的beaut
- 音悦台mv批量下载-python,音悦mv-python,None
- python操作oracle数据库,pythonoracle数据库,1、首先要下载
- 建立了一个MainWindow,创建最基本的菜单栏、状态栏、工
- Python对象转Json,python对象json,#!/usr/bin/e
- 统计多台linux的CPU使用率,统计多台linuxcpu,None
- Python实现单链表逆序,python单链逆序,#!/usr/bin/e
评论关闭