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
用Python写的一个多线程TCP通信实例
/usr/bin/envpython #-*-coding:utf-8-*- # importsocket impo
rtthread
ing importSocketServer importjson
a6225301
·
2015-01-12 10:00
Python socket聊天室程序
今天用python的socket模块实现了一个聊天室的程序虽然功能比较简单,但是该有的基本功能还是有的还望大家指点服务器端程序:importsocketimpo
rtthread
ingsock=socket.socket
Calling_Wisdom
·
2015-01-08 14:03
python
python
Python
学习笔记
Python socket聊天室程序
今天用python的socket模块实现了一个聊天室的程序虽然功能比较简单,但是该有的基本功能还是有的还望大家指点服务器端程序:importsocket impo
rtthread
ing sock=socket.socket
Calling_Wisdom
·
2015-01-08 14:00
python
使用Python脚本拉取2014 CSDN博客之星投票情况
源码#-*-coding:utf-8-*-importurllib2;importre;importos;impo
rtthread
;defloadBlogSor
张明云
·
2015-01-07 16:09
Python3 串口两进程同时读写
通过两个进程分别读写串口,并把发送与接收到的内容记录在blog中,收到q时程序结束并退出impo
rtthread
ing,timeimportserialimportstringclassSerThread
colcloud
·
2015-01-06 10:45
python SSH暴力破解工具
dengyongkai #blog@:blog.sina.com.cn/kaiyongdeng importsys importos importtime #fromthreadingimpo
rtThread
wdmsyf
·
2015-01-03 20:00
python
python的多线程
#python多线程 try: fromthreadingimpo
rtThread
impo
rtthread
ing,time,random exceptBaseException,e: print("
davidsu33
·
2014-12-22 09:00
python多线程
python第三方库系列之十二--多线程threading库
#-*-coding:utf-8-*- impo
rtthread
ing classMyThread(object): def__init__(self,func_list=None): #所有线程函数的返回值
wenph2008
·
2014-12-17 11:00
python获得线程调用函数的返回值
使用数据库是一个办法:可以让子线程将数据写到数据库中,消费线程再去数据库中读取数据;如果不想用数据库,可以使用类的全局变量来做传递,示例代码如下:importosimpo
rtthread
ingclassSubThread
北雨南萍
·
2014-12-16 22:31
语言:
python
python获得线程调用函数的返回值
使用数据库是一个办法:可以让子线程将数据写到数据库中,消费线程再去数据库中读取数据;如果不想用数据库,可以使用类的全局变量来做传递,示例代码如下:importosimpo
rtthread
ingclassSubThread
fireroll
·
2014-12-16 22:00
python3 多线程的基本用法
#coding=utf-8 impo
rtthread
ing#导入threading包 fromtimeimportsleep importtime deftask1(): print("Task1executed
laoyaotask
·
2014-11-12 23:00
python 线程学习
/usr/bin/pythonimpo
rtthread
ingimporttimeclassMyThread(threading.Thread): def__init__(self,threadname
nginx2012
·
2014-11-06 13:58
python
servlet启动服务的两种方式
1、配置监听,实现ServletContextListenerweb.xml: sta
rtThread
HelloWorld com.relive.listener.HelloListener java
zhaotengfei36520
·
2014-11-06 10:00
servlet
启动服务
python 线程池学习
/usr/bin/pythonimportQueue,threading,sysfromthreadingimpo
rtThread
importtime,urllibclassWorker(Thread)
nginx2012
·
2014-10-29 14:09
python
import
python 线程池学习
/usr/bin/pythonimportQueue,threading,sysfromthreadingimpo
rtThread
importtime,urllibclassWorker(Thread)
nginx2012
·
2014-10-29 14:09
python
import
Python多线程学习
如下例:importtime impo
rtthread
deftimer(no,interval): cnt=0 whilecnt=5: print'Thread%sreleased!
yangbingzhou
·
2014-10-28 16:00
多线程
python
Python 多线程(threading模块)
首先,自己区分单线程和多线程的概念,自己去搜单线程的例子如下:__author__='MrChen' impo
rtthread
ing fromtimeimportctime,sleep #单线程 defmusic
Calling_Wisdom
·
2014-10-26 13:00
多线程
python
【Python】多线程下载韩寒博客文章
:把韩寒博文目录第一页的所有文章下载下来1.正则在线测试工具:http://tool.chinaz.com/regex/getBlogData.pyimporturllib importre impo
rtthread
ing
ns2250225
·
2014-10-17 23:00
一段好玩的脚本,获取root账号
:utf-8 importos importgetpass importtime importsocket importre '''''forportscan''' fromthreadingimpo
rtThread
bazhinv
·
2014-10-17 16:55
python
domain
import
飘逸的python - 演示一种死锁的产生
#coding=utf-8 importtime impo
rtthread
ing classAccount: def_
u010180339
·
2014-10-07 17:00
多线程
操作系统
死锁
python多线程在socket编程中的应用(代码范例)
一文中提到过,server段处理client端发来的请求时,需要用多线程python多线程入门起来十分容易,所以这里直接和多线程socketserver一起示范:python的thread遵从以下格式:impo
rtthread
defchild_thread
officercat
·
2014-09-24 23:00
多线程
python
socket
server
通信
编程技术
python
python多线程在socket编程中的应用(代码范例)
一文中提到过,server段处理client端发来的请求时,需要用多线程python多线程入门起来十分容易,所以这里直接和多线程socketserver一起示范:python的thread遵从以下格式:impo
rtthread
officercat
·
2014-09-24 23:00
多线程
server
python
socket
通信
scoket多线程例子
/usr/bin/python#coding:utf8importsocketimportosimpo
rtthread
ingimporttimeimportsysdefwo
nginx2012
·
2014-09-23 16:04
多线程
server
python
HLS直播预取视频并更新m3u8
/usr/bin/python27importjsonimpo
rtthread
ingimporturllibimportsysimporthashlibimporttimeimportcommandsclassmyThread
dicc9527
·
2014-09-23 16:29
python
python版简易贪吃蛇
__author__='ChenYan'fromtkinterimport*impo
rtthread
ingimportqueueimporttimeimportrandomclassGUI(Tk):''
baigoo
·
2014-09-23 14:13
编程语言
Python3.4模拟实现生产者消费者模式
阅读更多散仙使用python3.4模拟实现的一个生产者与消费者的例子,用到的知识有线程,队列,循环等,源码如下:importqueueimporttimeimpo
rtthread
ingimportrandomq
qindongliang1922
·
2014-09-12 19:00
python
thread
生产者
消费者
Python3.4模拟实现生产者消费者模式
阅读更多散仙使用python3.4模拟实现的一个生产者与消费者的例子,用到的知识有线程,队列,循环等,源码如下:importqueueimporttimeimpo
rtthread
ingimportrandomq
qindongliang1922
·
2014-09-12 19:00
python
thread
生产者
消费者
基于Python的一个简单爬虫(糗事百科爬虫)
#-*-coding:utf-8-*- importurllib2 frombs4importBeautifulSoup impo
rtthread
importtime classqiushibaike
小竹zz
·
2014-09-10 12:00
【tulip】 - 多线程的版本
上次的网络编程的例子,改写成多线程的是这样:importsocketimpo
rtthread
defmain():listen_sock=socket.socket(family=socket.AF_INET
taowen
·
2014-09-10 00:00
multi-thread
python
python并发测试脚本
这两天要做性能测试,自己没事用python写了个脚本,用于压力测试Python代码#-*-coding:utf8-*-#codebyShurrikimpo
rtthread
ing,time,httplibHOST
hh_liu
·
2014-09-05 10:11
LPVOID是一个没有类型的指针
2示例程序编辑classCMyClass{voidStart();staticUINTSta
rtThread
(LPVOIDlParam);};voidCMyClass::Start(){AfxBegin
pcajax
·
2014-09-04 13:00
LPVOID是一个没有类型的指针
2示例程序 编辑 class CMyClass { void Start(); static UINT Sta
rtThread
(LPVOID lPar
pcajax
·
2014-09-04 13:00
指针
python threading多线程ping
/usr/bin/envpython#_*_coding:utf-8_*_importpexpectimportdatetimeimpo
rtthread
ingimportosdefLog(log):f=
120113541
·
2014-08-27 14:35
python
Python编程
python实现的基于TCP的JSON数据通信
/usr/bin/envpython#-*-coding:utf-8-*-#importsocketimpo
rtthread
ingimportSocketServerimportjsondefclient
fireroll
·
2014-08-27 10:00
Python多线程学习 setDaemon方法
(2)setDaemon方法:#-*-coding:utf-8-*-impo
rtthread
ingimporttimeclassmyThread(threading.Thread):def__init_
tycoon1988
·
2014-08-22 16:13
Python
线程启动带参数
public void Sta
rtThread
() { Thread TempThread = new Thread(new ThreadStart(Start
·
2014-08-14 11:00
线程
solrcloud 随机抽取中文搜索测试
/usr/bin/python#-*-coding:utf-8-*- importsolrimportpycurlimportcStringIOimpo
rtthread
ingimporttimeimportosimportsysimportrandomimporturllibdeftest
nginx2012
·
2014-08-13 15:10
python
import
content
中文搜索
android_c++ 高级编程NDK学习笔记五
activity_main.xml文件 字符串资源:string.xml文件NativeThreadsSettingsNativeThreadsThreadcountIterationcountSta
rtThread
s
retacn_yue
·
2014-08-06 14:00
Python 官方代码threading模块的一个死锁的bug
那就是可能会让线程的等待提前结束或者延迟,具体的原因是因为线程的wait操作判断超时时依赖于实时时间,即通过time.time()获取到的时候,为了显示这个问题,请看下面的例子:fromthreadingimpo
rtThread
fromthreadingimportEventimporttimee
i2cbus
·
2014-08-02 18:26
Python
Python 官方代码threading模块的一个死锁的bug
那就是可能会让线程的等待提前结束或者延迟,具体的原因是因为线程的wait操作判断超时时依赖于实时时间,即通过time.time()获取到的时候,为了显示这个问题,请看下面的例子:fromthreadingimpo
rtThread
I2Cbus
·
2014-08-02 18:00
thread
python
死锁
[置顶] python c/s 聊天
服务端:severchart.py#-*-coding:utf-8-*-importwximportsocketimportsysimpo
rtthread
classServerFrame(wx.Frame
zhanghs11
·
2014-08-01 14:00
python
socket
聊天
DTMF Stresstesting
impo
rtthread
ing,time,serial,sysfromrandomimportrandrangeport_snd=14port_recv=2recnt=0ser_snd=serial.Serial
eiguleo
·
2014-07-30 20:00
Python线程---经过了测试,但运行结束后,不退出解释器
#coding=utf-8#线程importtimeimpo
rtthread
importurllib2defget_html(url):html=urllib2.urlopen(url).read()returnhtml
刚刚悟道
·
2014-07-23 11:13
Python
Python多线程:thread、threading、queue
/usr/bin/envpython #impo
rtthread
fromtimeimportsleep,ctime defloop0(
kanguolaikanguolaik
·
2014-07-16 23:00
python多线程threading.Condition示例及解析
很多时候只有通过源码才能看清其本质,示例参考来源:http://blog.csdn.net/jgood/article/details/4305604impo
rtthread
ing,time classSeeker
vinrex
·
2014-07-14 20:00
我对python线程池的理解
/usr/bin/envpythonfromQueueimportQueuefromthreadingimpo
rtThread
importrandomimporttimedefperson(i,q):whileTrue
hahazhu0634
·
2014-07-06 16:27
python
线程池
Python/Php
我对python线程池的理解
/usr/bin/envpythonfromQueueimportQueuefromthreadingimpo
rtThread
importrandomimporttimedefperson(i,q):
hahazhu0634
·
2014-07-06 16:27
线程池
python
sta
rtThread
Pool,joinThreadPool 都在做什么
以main_mediaserver.cpp文件中的main()函数为例子,记录一下sta
rtThread
Pool函数和joinThreadPool函数都在做什么ProcessState::self()-
hongzg1982
·
2014-06-24 22:00
xenserver 批量安装vm
/bin/envpythonimpo
rtthread
ingimporttimeimport
朱恒
·
2014-06-17 17:00
VM
批量
xenserver
xenserver 批量安装vm
/bin/envpythonimpo
rtthread
ingimporttimeimport
朱恒
·
2014-06-17 17:00
批量
vm
xenserver
自动化运维
上一页
74
75
76
77
78
79
80
81
下一页
按字母分类:
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
其他