E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
RTThread
C#开源爬虫NCrawler源代码解读以及将其移植到python3.2(4)
线程池的实现:impo
rtThread
Pool.dlthread classthreadpool: def__init__(self,queue,handlers,maxdepth,num_of_threads
rav009
·
2013-06-29 22:00
C#开源爬虫NCrawler源代码解读以及将其移植到python3.2(3)
请看下面的一段代码:importtime impo
rtthread
ing importurllib.request importqueue classThreadUrl(threading.Thread
rav009
·
2013-06-27 17:00
PHP Charts 1.0 Remote Code Execution
files/119582/PHP-Charts-1.0-Code-Execution.html#infodox-insecurety.netimportrequestsimportrandomimpo
rtthread
ingimportsysdefge
cnbird2008
·
2013-06-26 17:17
PHP Charts 1.0 Remote Code Execution
files/119582/PHP-Charts-1.0-Code-Execution.html #infodox-insecurety.net importrequests importrandom impo
rtthread
ing
cnbird2008
·
2013-06-26 17:00
Tracking标注系统(Python+Opencv)
希望对大家有帮助,代码如下:'''CreatedonMay31,2013@author:Yang'''#car.pyimportcvimporttimeimpo
rtthread
importpythoncomimportpyHookimportosimports
Json_Nie
·
2013-06-24 09:09
Python
Tracking
object
python 错误: AttributeError: _strptime
由于Python的datetime和time中的_strptime方法不支持多线程,运行时会报错: importdatetimeimpo
rtthread
importtimedeff(): datetime.datetime.strptime
kevin6216
·
2013-06-04 12:00
获取指定扩展名的文件
#coding:utf-8 impo
rtthread
ing importos importtime defmain(name,*types): forroot,dirs,filesinos.walk(name
my2010Sam
·
2013-05-14 16:00
关于python的多线程问题
而我也是刚刚开始搞多线程,这是我的理解,请各位高手多多指教,前面是论坛代码,后面是我自己写的代码,新手,还请指点一下,一起进步~论坛代码(自己研究了一下,大体是这样):#encoding:UTF-8impo
rtthread
ingimporturllib
runfeel
·
2013-05-13 12:00
python
Python Threading Queue 生产者消费者异步传输数据
#-*-code:utf8-*-impo
rtthread
ingimportQueueclassProducer(threading.Thread): def__init__(self,in_queue
longtian001
·
2013-05-12 20:48
python
Queue
threading
小试一下 python写的简单DOS框聊天脚本
impo
rtthread
ingimportdatetimeimportsocketotherip='192.168.3.29'otherport=8003yourport=8003classServerClass
a771948524
·
2013-05-08 20:00
批量获取域名解析地址socket&&thread
impo
rtthread
importsocketdefgetIP(name,lock): print'[%s]:%s\n'%(name,socket.gethostbyname(name))
pizize
·
2013-05-06 15:55
import
域名
name
Python代理抓取并验证使用多线程实现
没有使用队列,也没有线程池还在学习只是多线程复制代码代码如下:#coding:utf8importurllib2,sys,reimpo
rtthread
ing,osimporttime,datetime'
·
2013-05-03 17:16
[Python]代理抓取并验证-多线程
没有使用队列,也没有线程池还在学习 只是多线程 #coding:utf8 importurllib2,sys,re impo
rtthread
ing,os importtime,datetime '''
lzz957748332
·
2013-05-03 15:00
多线程
代理
python
抓取
3 OSG创建渲染线程的过程
OSG创建渲染线程的过程 图形渲染线程是静态函数,为:staticunsignedint__stdcallSta
rtThread
(void*data)它是在intThread::start()中被调用:
tmljs1988
·
2013-04-29 23:00
Python 多线程
如下例:importtime impo
rtthread
deftimer(no,interval): cnt=0 whilecnt=5: print'Thread%sreleased!
liberize
·
2013-04-29 20:00
多线程
python
[Python]第八课笔记 简单代理爬虫
oswin7 python2.7#coding=utf8 importurllib2,re,os impo
rtthread
ing importtime,datetime defget_proxy_addr
lzz957748332
·
2013-04-29 17:00
代理
python
爬虫
proxy
check
python--做远程scp的进度条
multiprocessing为多进程函数(本处使用进程)scp通过pexpect与本机进行交互输入密码(如果配置无密登陆此处可以省略)通过paramiko获取远程服务器的du-s的值 importsysimportosimpo
rtthread
ing
woshizb110
·
2013-04-28 17:39
python
pexpect
paramiko
threading
multiprocessing
Python中Lock与RLock
它们之间有一点细微的区别,通过比较下面两段代码来说明:impo
rtthread
inglock=threading.Lock()#Lock对象lock.acquire()lock.acquire()#产生了死琐
myKernel
·
2013-04-25 15:04
Python
Python 中用 Ctrl+C 终止多线程程序的问题解决
/bin/envpython #-*-coding:utf-8-*- #filename:peartest.py impo
rtthread
ing,signal is_exit=Fal
不必在乎朕是谁
·
2013-04-24 21:00
多线程
线程
python
中断
Python多线程操作
很容易写出这样的代码:#encoding:UTF-8 impo
rtthread
ing importtime classMyThread(threading.Thread): defrun(self
zxncvb
·
2013-04-23 15:00
25个必须记住的SSH命令
/usr/bin/python importparamiko impo
rtthread
ing defssh2(ip,username,passwd,cmd): try: ssh=paramiko.SSHClient
julius_lee
·
2013-04-18 16:00
python版本DDOS攻击脚本
/usr/bin/envpython importsocket importtime impo
rtthread
ing #PressureTest,ddostool #------------------
jeepxiaozi
·
2013-04-14 13:00
c#中封闭好的开源线程池Sma
rtThread
Pool
Sma
rtThread
Pool是一个开源的对于.net自身的ThreadPool的二次封装组件。。缺陷挺多,但是一般性使用是够了。
youaregoo
·
2013-04-06 19:00
python 多线程采集网页完善版
impo
rtthread
ing,time,random,htmllib,urllib,formatter,string,redefgetPageNum(data): result=re.findall
rrr4578
·
2013-04-03 17:00
python 多线程采集网页
impo
rtthread
ing,time,random,htmllib,urllib,formatter,string,redefgetPageNum(data): result=re.findall
rrr4578
·
2013-03-30 15:00
Python中用Ctrl+C终止多线程程序的问题解决
/bin/envpython#-*-coding:utf-8-*-#filename:peartest.pyimpo
rtthread
ing,signalis_exit=FalsedefdoStress(
·
2013-03-30 14:14
python多线程采集原理测试
impo
rtthread
ing,time,randomclassweburl(): def__init__(self): self.l=[] self.count=0
rrr4578
·
2013-03-30 13:00
【Python 3这件小事】 5.Python多线程学习
如下例:#-*-coding:utf-8-*- impo
rtthread
defrun_thread(
·
2013-03-28 13:00
python
JAVA多线程Thread和Runnable的实现
java.lang.Thread类定义的线程*/publicvoidstartOne(){//创建实例OneThreadoneThread=newOneThread();//启动线程ThreadAoneThread.sta
rtThread
A
·
2013-03-17 12:01
Python的多线程支持-pybatis的准备阶段(十一)
先看第一种情况:importtime impo
rtthread
deftimer(no,interval):
imzoer
·
2013-03-11 21:00
python多线程处理重复任务10000次
/usr/bin/python impo
rtthread
ing importurllib2 #f=open("/root/wget.txt","a") x=[i.strip()foriinopen
nine123456
·
2013-03-07 19:52
多线程
python
python多线程
ThreadStart和ParameterizedThreadStart区别
ThreadSta
rtthread
Start=newThreadStart(Calculate); Threadthread=newThread(threadStart); thread.Start()
a316019667
·
2013-03-07 16:00
tornado thread 任务处理模式
importfunctools importtime impo
rtthread
ing importlogging importQueue #importhunspell importtornado.web
liukeforever
·
2013-03-07 11:00
Python:使用threading模块实现多线程编程六[可重入锁RLock]
根据这种情况,代码如下:Python代码'''''Createdon2012-9-8@author:walfred@module:thread.ThreadTest6'''impo
rtthread
ing
马誉
·
2013-03-06 14:38
python
Python:使用threading模块实现多线程编程六[可重入锁RLock]
根据这种情况,代码如下:Python代码'''''Createdon2012-9-8@author:walfred@module:thread.ThreadTest6'''impo
rtthread
ing
马誉
·
2013-03-06 14:28
python
Python:使用threading模块实现多线程编程三[threading.Thread类的重要函数]
,实例代码如下:Python代码'''''Createdon2012-9-7@author: walfred@module:thread.ThreadTest3@description:'''impo
rtthread
ing
马誉
·
2013-03-06 14:49
python
.Net多线程总结
所以掌握起来总是有一些头疼,我在这里讲讲我总结的一些多线程编程的经验,希望对大家有帮助 不需要传递参数,也不需要返回参数我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下 ThreadSta
rtthread
Start
jiangxinyu
·
2013-02-26 14:00
python多线程使用threading模块锁线程
impo
rtthread
ing importtime classmythread(threading.Thread): def__init__(self,func,args,name=''): threading.Thread
吾爱
·
2013-02-12 15:00
dboss的非阻塞IO
现在是一段测试代码:python:impo
rtthread
ingDBOSS={"dboss":{"locations":["localhost:8989"],"references":[{"id":"blogQuerySer
san_yun
·
2013-02-11 17:07
dboss
dboss的非阻塞IO
现在是一段测试代码:python:impo
rtthread
ing DBOSS={ "dboss":{ "locations":["localhost:8989"], "references"
san_yun
·
2013-02-11 17:00
非阻塞
Android正确关闭线程
Android正确关闭线程1、正常关闭:推荐使用业务标志位结束线程的工作流程,待线程工作结束自行关闭,如下mWorking进行控制线程的业务是否继续进行:/** *sta
rtthread
running
zhangty0223
·
2013-02-07 11:00
android
线程
RTT startup.c 代码学习
void
rtthread
_startup(void) { /*initboard*/ rt_hw_board_init(); /*showversion*/ rt_show_version
lyyyuna
·
2013-02-04 10:00
rtt
python thread 并发且顺序运行示例
#-*-coding:utf-8-*- impo
rtthread
ing importtime deffun(name,ls_name,front_thread=None): ''''' 线程启动函数 通过
yidangui
·
2013-01-28 14:00
python定时检查启动某个exe程序适合检测exe是否挂了
详见代码如下:复制代码代码如下:impo
rtthread
ingimporttimeimportosimportsubprocessdefget_process_count(imagename):p=os.popen
·
2013-01-21 10:29
初学python:网络通信
服务器端:ser.pyfromsocketimport* impo
rtthread
PORT=5648 BUFSIZE=1024 defth(): whileTrue: data=raw_input
tobacco5648
·
2013-01-21 00:00
python执行多线程的实例
#-*-encoding:gb2312-*-impo
rtthread
ingimporttimefromsocketimport*classMyThread(threading.Thread): def
yidangui
·
2013-01-16 10:00
python
python
python 多线程检测同网段主机在线状态
#-*-coding:utf-8-*-#codebyscpman#http://www.scpman.comimpo
rtthread
ingfromtimeimportsleep,ctimedefping_all
scpman
·
2013-01-13 17:05
多线程
python
检测
主机
在线状态
python定时检查启动某个exe程序(如果exe挂了)
详见代码如下:impo
rtthread
ing importtime importos importsubprocess defget_process_count(imagename): p=os.popen
androidzhaoxiaogang
·
2013-01-10 22:00
豆瓣小站音乐下载
#coding:utf-8 importurllib2 impo
rtthread
ing importre,time importQueue classPaserDouban(object): def
shell-von
·
2013-01-08 11:00
python
多线程socket压力测试
/user/bin/envpython#-*-encoding:utf-8-*-importsocketimpo
rtthread
,threadingsockIndex=1defconnToServer(
lenglingx
·
2013-01-03 02:55
多线程
python
压力测试
Python语言
上一页
77
78
79
80
81
82
83
84
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他