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
批量修改LINUX主机密码 和发送命令
/usr/bin/python importparamiko impo
rtthread
ing defssh2(ip,username,passwd,cmd): try: ssh=paramiko.SSHClient
flyingzf
·
2013-11-19 16:56
python
修改密码
批量
批量修改LINUX主机密码 和发送命令
/usr/bin/pythonimportparamikoimpo
rtthread
ingdefssh2(ip,username,passwd,cmd):try:ssh=paramiko.SSHClient
flyingzf
·
2013-11-19 16:56
批量
修改密码
python
python 结合 schedule 和thread 实现触发式周期调用某函数(更新数据)
envpython#ThisPythonfileusesthefollowingencoding:utf-8'''CreatedonNov18,2013@author:root'''fromthreadingimpo
rtThread
importtime
chenyulancn
·
2013-11-19 08:09
python
python聊天程序实例代码分享
代码简单,直接看代码吧:复制代码代码如下:importsocketimpo
rtthread
ingimportre#importTkinterdefser():s=socket.socket(socket.AF_INET
·
2013-11-18 11:34
python实现系统状态监测和故障转移实例方法
复制代码代码如下:#coding:utf-8importsocketimportselectimporttimeimportosimpo
rtthread
ingdefser():s=socket.socket
·
2013-11-18 10:51
python线程池的实现实例
直接上代码:复制代码代码如下:#-*-coding:utf-8-*-importQueueimpo
rtthread
ingimporturllibimporturllib2importosdefdown(
·
2013-11-18 10:27
Python继承类的方式实现多线程及控制线程数
/usr/bin/python #coding:utf-8 impo
rtthread
ing importdatetime importlogging importtime logging.basicConfig
lihuipeng
·
2013-11-08 17:18
python
Semaphore
threading
Python继承类的方式实现多线程及控制线程数
/usr/bin/python#coding:utf-8impo
rtthread
ingimportdatetimeimportloggingimporttimelogging.basicConfig(level
lihuipeng
·
2013-11-08 17:18
python
Semaphore
threading
Python与运维
Python 简单的多线程执行命令
/usr/bin/python#coding:utf-8impo
rtthread
ingimportsubprocessimportosimportsyssshport=13131log_path='update_log'output
lihuipeng
·
2013-11-07 14:32
shell
多线程
python
Python与运维
Python 简单的多线程执行命令
/usr/bin/python #coding:utf-8 impo
rtthread
ing importsubprocess importos importsys sshport=13131 log_path
lihuipeng
·
2013-11-07 14:32
多线程
shell
python
执行命令
并行计算实现判断一个数是不是素数--Win32和.Net两种方式结合
include #include usingnamespacestd; intm; floatc; intflag=0; intc2; HANDLEThread1,Thread2; voidSta
rtThread
wangyang1354
·
2013-11-01 15:00
.net
Win32
并行计算
rt-thread rtos系统看看2
/**File:
rtthread
.h*ThisfileispartofRT-ThreadRTOS*COPYRIGHT(C)2006,RT-ThreadDevelopmentTeam**Thelicenseanddistributiontermsforthisfilemaybe
zz_yun
·
2013-10-31 23:17
RTOS
系统看看
python scoket聊天小工具
Server端代码如下:#coding=gbk fromsocketimport* importtime impo
rtthread
ing defanswer_screen(HOST,PORT,BUFSIZE
brother_星
·
2013-10-30 23:47
python
聊天
工具
Scoket
python scoket聊天小工具
Server端代码如下:#coding=gbkfromsocketimport*importtimeimpo
rtthread
ingdefanswer_screen(HOST,PORT,BUFSIZE):
brother_星
·
2013-10-30 23:47
工具
聊天
python
scoket
Python学习
python模块学习---多线程处理
impo
rtthread
,time count=0 defthreadTest(): globalcount foriinxrange(10000): count+=1 foriinrange(10):
haoni123321
·
2013-10-30 15:00
thread
多线程
python
Python 专题三 python 多线程
一.Join操作impo
rtthread
ing importtime classMyThread(threading.Thread): def__init__(self,id): threading.Thread
wcc526
·
2013-10-18 14:00
python
raw soket
linux下rawsocket抓取tcp包importsocket importstruct impo
rtthread
impo
rtthread
ing importtime importos defdecodeIpHeader
lwnylslwnyls
·
2013-10-12 13:00
jmeter插件之自定义场景图(万能场景设计)
79642549jmeter插件相关引用请参阅:jmeter插件推荐自定义线程组:jp@gc-UltimateThreadGroup此线程组功能强大,可以实现多种场景设置,添加路径如图参数含义解释Sta
rtThread
sCount
u012338364
·
2013-10-09 16:00
高并发
性能测试
JMeter
开源性能测试工具
插入排序 与 希尔排序 效率对比
=newint[COUNT]; //初始化数据 static{ Randomrandom=newRandom(); for(inti=0;ifuture=newFutureTask(newSo
rtThread
shking
·
2013-09-22 23:00
多线程同时启动多个应用程序
importos impo
rtthread
ing importrandom importtime defstart_process(): startcmd=r'a.exeuname=xxx;meeting
tujiaw
·
2013-09-16 18:00
pythonthread锁对象
/usr/bin/envpythonimpo
rtthread
fromtimeimportsleep,ctimeloops=[4,2]defloop(nloop,nsec,lock):print'startloop
freeterman
·
2013-09-15 07:30
thread
python
threading
锁对象
【C++11 并发编程教程 - Part 1 : thread 初探(bill译)】
原文:C++11Concurrency-Part1:Sta
rtThread
sC++11引入了一个新的线程库,包含了用于启动、管理线程的诸多工具,与此同时,该库还提供了包括互斥量、锁、原子量等在内的同步机制
Bill_Hoo
·
2013-09-11 11:43
多线程
并发
Cpp0x
C++11
【C++11 并发编程教程 - Part 1 : thread 初探(bill译)】
原文:C++11Concurrency-Part1:Sta
rtThread
s C++11引入了一个新的线程库,包含了用于启动、管理线程的诸多工具,与此同时,该库还提供了包括互斥量、锁、原子量等在内的同步机制
Bill_Hoo
·
2013-09-11 11:43
多线程
并发
concurrency
cpp0x
cpp11
python扫描端口小程序
自己写的,主要是练习python多线程模块threading,以下是代码:#coding:utf-8 importsocket impo
rtthread
ing importtime classSkPort
halcyonone
·
2013-09-04 18:09
多线程
python
程序
Python刷点击率,下载量代码
/usr/bin/envpython #-*-coding:utf-8-*- #@author:WikerYong importurllib2,urllib; fromthreadingimpo
rtThread
yangwei19680827
·
2013-08-30 15:00
python访问量
python fabric paramiko 文件上传 下载
importpexpectfromfabric.apiimportenv,put,get#impo
rtthread
ingclassHost:def__init__(self,ip,user,password
challenchenzhipeng
·
2013-08-30 14:47
Python
python fabric paramiko 文件上传 下载
importpexpect fromfabric.apiimportenv,put,get #impo
rtthread
ing classHost: def__init__(self,ip,user,password
ChallenChenZhiPeng
·
2013-08-30 14:00
JAVA NIO导致JAVA服务端程序无法关闭的奇怪问题
publicvoidreceiveData()throwsIOException{ //TODOAuto-generatedmethodstub recThread=newRecThread(); c
rtThread
jzl19901027
·
2013-08-19 17:00
java
多线程
nio
无法关闭
python 线程锁
#encoding:UTF-8impo
rtthread
ingimporttime data=0lock=threading.Lock() deffunc(): globaldata print'%sacquirelock
MaxOmnis
·
2013-08-05 10:00
python
Android Binder的使用和设计[android native serivce]
**argv){ spproc(ProcessState::self()); PartitionService::instantiate(); ProcessState::self()->sta
rtThread
Pool
_liusl
·
2013-08-04 20:00
android
service
native
Binder
Binder机制
Binder的使用
python——多线程thread
python通过thread模块支持多线程,语法也很简洁,现在通过一个实例来看一下python中的多线程:impo
rtthread
importtime #保证只额外启动一个线程 isRunning
lxlzhn
·
2013-07-31 23:00
thread
多线程
python
多线程测试对比infobright取数
/usr/bin/envpython#coding=utf-8impo
rtthread
ing,sysimportrandomimporttimefromQueueimportQueueimportMySQLdb
tofhao
·
2013-07-30 17:00
python多线程抓取网页信息
*-coding:utf-8 -*-importurllib importurllib2 importrandom importrequestsimportos,sys importQueueimpo
rtthread
ingimporttimeimportMySQLdbfromsgmllibimportSGMLParser
huaweitman
·
2013-07-29 20:00
Python thread的解析
一,在impo
rtthread
之后,我们help(thread)一下,可以看到如下信息:NAMEthreadFILE(built-in)DESCRIPTIONThismoduleprovidesprimitiveoperationstowritemulti-threadedprograms.The'threading'moduleprovidesamoreconvenientinterface.C
myKernel
·
2013-07-28 11:51
Python
Linux
Python thread的解析
一,在impo
rtthread
之后,我们help(thread)一下,可以看到如下信息:NAMEthreadFILE (built-in)DESCRIPTIONThismoduleprovidesprimitiveoperationstowritemulti-threadedprograms.The
cnmilan
·
2013-07-28 11:00
python:threading多线程模块-使用Queue模块保持线程同步
利用Queue对象先进先出的特性,将每个生产者的数据一次存入队列,而每个消费者将依次从队列中取出数据impo
rtthread
ing#导入threading模块 importQueue#导入Queue模块
pizize
·
2013-07-27 19:29
python
Queue
threading
python:threading多线程模块-使用Queue模块保持线程同步
利用Queue对象先进先出的特性,将每个生产者的数据一次存入队列,而每个消费者将依次从队列中取出数据impo
rtthread
ing#导入threading模块importQueue#导入Queue模块classProducer
pizize
·
2013-07-27 19:29
python
threading
Que
python
python:threading多线程模块-锁介绍
ps:以下代码来自《征服python-语言基础于典型应用》impo
rtthread
ing#导入threading模块 importtime#导入time模块 classmythread(threading.Thread
pizize
·
2013-07-27 19:00
python
threading
python 简单线程池实例
importsocket fromdatetimeimportdatetime fromthread_poolimport* importQueue,threading,sys fromthreadingimpo
rtThread
a657941877
·
2013-07-26 19:00
python 实现多线程ping检测服务器情况
然后把ip传到定义的函数里面执行,使用queue队列实现多线程,很简单,不多说了,看代码[root@localhost~]#catping.py #coding:utf8 importos impo
rtthread
ing
游造
·
2013-07-25 16:36
python
python
python 实现多线程ping检测服务器情况
adress列表,然后把ip传到定义的函数里面执行,使用queue队列实现多线程,很简单,不多说了,看代码[root@localhost~]#catping.py#coding:utf8importosimpo
rtthread
ingimportQueuequeue
游造
·
2013-07-25 16:36
python
python
实现多线程ping检测服务
python
python多线程应用实例
python#-*-coding:utf-8 -*-importurllibimporturllib2importrandomimportrequestsimportos,sysimportQueueimpo
rtthread
ingimportMySQLdbfromsgmllibimportSGMLParserimportrequeue
huaweitman
·
2013-07-24 17:00
python多线程简介
impo
rtthread
ingimportdatetime classThreadClass(threading.Thread):defrun(self):now=datetime.datetime.now
huaweitman
·
2013-07-24 11:00
python 多线程实现洗牌算法 (二)
#-*-coding:cp936-*-importrandomimpo
rtthread
ingmylock=threading.RLock()ren=[]name=['lidandan','zhangqi
tingyuanss
·
2013-07-23 15:00
python 多线程实现洗牌算法(一)
第一次写洗牌代码,代码很多复用了#-*-coding:cp936-*-importrandom,timeimpo
rtthread
ingmylock=threading.RLock()huase=['黑桃
tingyuanss
·
2013-07-23 15:00
tornado io 阻塞 线程
fromtimeimportsleepfromtornado.httpserverimportHTTPServerfromtornado.ioloopimportIOLoopfromtornado.webimportApplication,asynchronous,RequestHandlerfrommultiprocessing.poolimpo
rtThread
Pool
hewy0526
·
2013-07-23 10:00
Python多线程
/usr/bin/python #-*-coding:utf-8-*- impo
rtthread
ing classMyThread(threading.Thread): def__init__(
smart818
·
2013-07-22 18:10
thread
多线程
python
import
python多线程+队列下载资源
我想尽可能的做到通用性,以后可以直接用的,代码如下,抛砖引玉,欢迎建议和意见:importurllib.requestimportreimportqueueimpo
rtthread
ingimportosclassdownload
littlethunder
·
2013-07-21 09:36
Python
python多线程+队列下载资源
我想尽可能的做到通用性,以后可以直接用的,代码如下,抛砖引玉,欢迎建议和意见:importurllib.request importre importqueue impo
rtthread
ing importos
littlethunder
·
2013-07-21 09:00
thread
python
Queue
threading
python实战--Http代理服务器
源代码如下:importsocket impo
rtthread
importurlparse importselect BUFLEN=8192 classProxy
yueguanghaidao
·
2013-07-09 00:00
上一页
76
77
78
79
80
81
82
83
下一页
按字母分类:
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
其他