上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: python socket之tcp服务器与客户端demo作者:vpoetmails:vpoet_sir@163.comserver: 1 # -*- coding: cp936 -*- 2 ''' 3 建立一个python server,监听指定端口, 4 如果该端口被远程连接访问,则获取远程连接,... 阅读全文
posted @ 2015-06-24 12:56 vpoet 阅读(491) 评论(0) 推荐(0) 编辑
摘要: python局域网alive ip侦听作者:vpoetmails:vpoet_sir@163.com注:写着玩,欢迎copy 1 # -*- coding: cp936 -*- 2 # coding = utf-8 3 4 import os 5 import re 6 import... 阅读全文
posted @ 2015-06-24 12:51 vpoet 阅读(461) 评论(0) 推荐(0) 编辑
摘要: python hook监听事件作者:vpoetmail:vpoet_sir@163.com 1 # -*- coding: utf-8 -*- # 2 # by oldj http://oldj.net/ # 3 import pythoncom 4 import pyHook 5 de... 阅读全文
posted @ 2015-06-24 12:47 vpoet 阅读(836) 评论(0) 推荐(0) 编辑
摘要: python-pcap模块解析mac地址作者:vpoetmail:vpoet_sir@163.com 1 import pcap 2 import binascii 3 4 5 a = pcap.pcap() 6 a.setfilter('arp') 7 8 for i,j in a: 9 ... 阅读全文
posted @ 2015-06-23 22:37 vpoet 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 错误提示:MongoDB shell version: 2.4.9connecting to: testMon Mar 3 23:45:09.491 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.... 阅读全文
posted @ 2015-06-23 21:57 vpoet 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: python抓京东手机数据作者:vpoetmail:vpoet_sir@163.com 1 #coding=utf-8 2 3 import urllib2 4 5 from lxml import etree 6 7 import re 8 9 10 if __name__ == '__m... 阅读全文
posted @ 2015-06-23 21:50 vpoet 阅读(701) 评论(0) 推荐(0) 编辑
摘要: python使用post登陆电子科大信息门户并保存登陆后页面作者:vpoetmail:vpoet_sir@163.com 1 #coding=utf-8 2 import HTMLParser 3 import urlparse 4 import urllib 5 import url... 阅读全文
posted @ 2015-06-23 21:44 vpoet 阅读(432) 评论(0) 推荐(0) 编辑
摘要: python爬取多页gif图像作者:vpoetmail:vpoet_sir@163.com 1 #coding:utf-8 2 import urllib 3 import urllib2 4 import re 5 6 7 # 将正则表达式编译成Pattern对象 8 rex=r... 阅读全文
posted @ 2015-06-23 21:39 vpoet 阅读(1529) 评论(0) 推荐(0) 编辑
摘要: python连续爬取多个网页的图片分别保存到不同的文件夹作者:vpoetmail:vpoet_sir@163.com 1 #coding:utf-8 2 import urllib 3 import urllib2 4 import re 5 6 7 # 将正则表达式编译成Pattern对象 ... 阅读全文
posted @ 2015-06-23 21:24 vpoet 阅读(1194) 评论(0) 推荐(0) 编辑
摘要: python多线程同步作者:vpoet日期:大约在夏季 1 import threading 2 import time 3 mylock = threading.RLock() 4 num=0 5 6 class myThread(threading.Thread): 7 ... 阅读全文
posted @ 2015-06-23 21:19 vpoet 阅读(208) 评论(0) 推荐(0) 编辑
摘要: python多线程简单例子作者:vpoetmail:vpoet_sir@163.com 1 import thread 2 def childthread(threadid): 3 print "I am child thread",threadid 4 5 6 def pare... 阅读全文
posted @ 2015-06-23 21:13 vpoet 阅读(200) 评论(0) 推荐(0) 编辑
摘要: python定时器爬取豆瓣音乐Top榜歌名作者:vpoetmail:vpoet_sir@163.com注:这些小demo都是前段时间为了学python写的,现在贴出来纯粹是为了和大家分享一下 1 #coding=utf-8 2 3 import urllib 4 import urllib2 ... 阅读全文
posted @ 2015-06-23 21:03 vpoet 阅读(344) 评论(0) 推荐(0) 编辑
摘要: python模拟Get请求保存网易歌曲的url作者:vpoetmail:vpoet_sir@163.com日期:大约在夏季 1 #coding:utf-8 2 3 import requests 4 import json 5 6 url = 'http://music.163.com//api... 阅读全文
posted @ 2015-06-23 21:00 vpoet 阅读(518) 评论(0) 推荐(0) 编辑
摘要: python使用get在百度搜索并保存第一页搜索结果作者:vpoetmail:vpoet_sir@163.com注:随意copy,不用在意我的感受 1 #coding:utf-8 2 import urllib 3 import urllib2 4 import re 5 6 """ 7 使用GE... 阅读全文
posted @ 2015-06-23 20:42 vpoet 阅读(550) 评论(1) 推荐(0) 编辑
摘要: python爬取某个网页的图片-如百度贴吧作者:vpoetmail:vpoet_sir@163.com注:随意copy,不用告诉我 1 #coding:utf-8 2 import urllib 3 import urllib2 4 import re 5 6 if __name__ =="__m... 阅读全文
posted @ 2015-06-23 20:26 vpoet 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页