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--serial
有此类,去用python解决各种串口问题吧:fromQueueimportQueue importrandom importtime impo
rtthread
importstruct importserial
elevenqiao
·
2011-08-09 17:00
thread
struct
python
import
Python多线程
如下例:importtimeimpo
rtthread
deftimer(no,interval
Cain
·
2011-07-11 17:00
Sleep Sort
publicclassSleepSort{publicstaticvoidmain(String[]args){int[]ints={1,4,7,3,8,9,2,6,5};So
rtThread
[]so
rtThread
s
zdcsky123
·
2011-06-30 09:00
thread
String
Class
恶搞之睡眠排序
publicclassSleepSort{publicstaticvoidmain(String[]args){int[]ints={1,4,7,3,8,9,2,6,5};So
rtThread
[]so
rtThread
s
wangcj625
·
2011-06-25 22:00
thread
String
Class
对python实例类运用同步锁装饰器
比如:impo
rtthread
ing defsync(lock): defsyncWithLock(fn): defnewFn(*args,**kwargs): lock.acquire()
·
2011-05-31 16:00
python
Python 定时器
impo
rtthread
ing,time classTimer(threading.Thread): def__init__(self,fn,args=(),sleep=0,lastDo=True
·
2011-05-31 15:00
python
python 多线程例子
如下:impo
rtthread
ingimporttimeclassmythread(threading.Thread): def__init__(sel
aixiaohei
·
2011-05-26 09:00
thread
多线程
python
user
import
多线程过桥的问题
impo
rtthread
ingimporttimefromcollectionsimportdequeclassPerson(threading.Thread):def__init__(self,id,
yangyi
·
2011-05-14 17:00
多线程
Python
thread
J#
Python使用一个进度条
importosimportsysimportcmdimportunicodedatafromthreadingimpo
rtThread
fromtimeimportsleepclassProgressBar
HorkyChen
·
2011-04-15 00:00
thread
python
import
Python使用一个进度条
importosimportsysimportcmdimportunicodedatafromthreadingimpo
rtThread
fromtimeimportsleepclassProgressBar
Horky
·
2011-04-15 00:00
Python/Perl
简单的类似crontab的调度器
代码如下:#coding=utf-8impo
rtthread
ing,datetime,logging,timeclassScheduler(object):defschedule(self,trigger
abu
·
2011-04-06 15:00
Python
Linux
ITeye
Blog
python变量覆盖陷阱
以下是其代码:importsysimpo
rtthread
ingimporttimeurls=['http://www.google.com','http://www.sina.com.cn'
marlonyao
·
2011-04-03 21:00
Python
Mobile
Gmail
Google
thread
Python 读取键盘输入字符,多线程操作,文件操作随机处理 开发范例
#encoding=utf-8importos,tempfile,urllib2impo
rtthread
,threadingimporttime,randomimport tty,termios,sysimportsignal
samxx8
·
2011-03-30 22:00
python2 与pyghont3 区别注意的地方
其实我想知道后者比前者在哪些地方改进了 impo
rtthread
改成了fromthreadingimpo
rtThread
这样。
samxx8
·
2011-03-29 15:00
thread
python
import
我的python小程序
#encoding=utf-8importos,tempfile,urllib2impo
rtthread
importtime,randomimportMySQLdb#获得url内容,并返回内容defgetURLContent
samxx8
·
2011-03-29 01:00
Python实战之多线程编程threading.Thread
在Python中可以使用继承threading.Thread类来实现多线程编程,其中子类可以重写父类的__init__和run方法来实现用户线程的逻辑,如下是一个简单的多线程类实现impo
rtthread
ingclassMyThread
kongxx
·
2011-02-16 08:00
Python
线程基类
defineTHTEAD_WORK_STOP WM_USER+5001 classCThreadWork{public: CThreadWork(void); ~CThreadWork(void); BOOLSta
rtThread
wellwy
·
2011-02-12 16:40
线程
职场
休闲
[转]FTK在RT-Thread的演示(win32平台)
demo:这个是把svn版本的FTK运行于RT-Thread上,采用的是mini2440分支,为了让大家能够直观的看到效果就做成QEMU虚拟机的形式,下载后在Windows上解压到一个目录运行run-
rtthread
-ftk.bat
absurd
·
2011-01-18 21:00
虚拟机
windows
浏览器
shell
网络协议
平台
python多队列示例
#coding=utf-8importQueueimpo
rtthread
ingimporturllib2importtimefromBeautifulSoupimportBeautifulSouphosts
nettudou
·
2011-01-10 10:30
职场
休闲
python多队列示例
python多队列示例
#coding=utf-8importQueueimpo
rtthread
ingimporturllib2importtimefromBeautifulSoupimportBeautifulSouphosts
nettudou
·
2011-01-10 10:30
职场
休闲
python多队列示例
[.NET] 关于.NET线程问题总结(一)
基础篇: 怎样创建一个线程我只简单列举几种常用的方法,详细可参考.Net多线程总结(一)一)使用Thread类ThreadSta
rtthread
Start=newThreadStart(Calculate
xinshi9608
·
2011-01-03 08:00
python 多线程特性1
使用了装饰者模式 impo
rtthread
ing fromtimeimportsleep,ctime
mo451583183
·
2010-12-06 09:30
多线程
python
职场
休闲
threading
Python threading
impo
rtthread
ing fromtimeimportsleep,ctime loops=[4,2] defloop(nloop,nsec): print'\nstartloop:
mo451583183
·
2010-12-06 09:16
python
职场
休闲
threading
.NET下的线程问题总结
[.NET]关于.NET线程问题的解答基础篇怎样创建一个线程我只简单列举几种常用的方法,详细可参考.Net多线程总结(一)一)使用Thread类ThreadSta
rtthread
Start=newThreadStart
angelmc90
·
2010-10-19 23:33
.net
多线程
WinForm
UI
thread
用 python 实现一个多线程网页下载器
/usr/bin/envpython #-*-coding:utf-8-*- importurllib,httplib impo
rtthread
importtime fromQueueimportQueue
flynewton
·
2010-10-14 15:00
多线程
python
python 实现一个多线程网页下载器
#-*-coding:utf-8-*-importurllib,httplibimpo
rtthread
importtimefromQueueimportQueue,Empty,FullHEADERS={
flandycheng
·
2010-10-14 14:39
thread
http
python
threading
httplib
multi-threads
python 实现一个多线程网页下载器
#-*-coding:utf-8-*-importurllib,httplibimpo
rtthread
importtimefromQueueimportQueue,Empty,FullHEADERS={
flandycheng
·
2010-10-14 14:39
thread
http
python
threading
httplib
multi-threads
定时器和取得类路径
定时器和取得类路径一、System.getProperty("user.dir");//获得当前项目的类路径二、定时器Timertimer=newTimer();TimerTasktask=newRepo
rtThread
我的java天地
·
2010-10-13 10:00
在C#中ParameterizedThreadStart和ThreadStart区别
不需要传递参数,也不需要返回参数 我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下:ThreadSta
rtthread
Start=newThreadStart(Calculate);Threadthread
jlds123
·
2010-09-28 16:00
thread
多线程
object
String
C#
Class
python c/s开发
/usr/bin/envpython#-*-coding:utf-8-*-importSocketServerimportosimpo
rtthread
ingclassMyHandle(SocketServer.StreamRequestHandler
hahazhu0634
·
2010-08-06 17:18
python
职场
socketserver
休闲
python c/s开发
/usr/bin/envpython#-*-coding:utf-8-*-importSocketServerimportosimpo
rtthread
ingclassMyHandle(SocketServer.StreamRequestHandler
hahazhu0634
·
2010-08-06 17:18
python
职场
socketserver
休闲
python c/s开发
/usr/bin/envpython#-*-coding:utf-8-*-importSocketServerimportosimpo
rtthread
ingclassMyHandle(SocketServer.StreamRequestHandler
hahazhu0634
·
2010-08-06 17:18
职场
休闲
python
socketserver
Python/Php
Python学习 多线程编程 生产者-消费者问题
/usr/bin/envpython#生产者-消费者问题impo
rtthread
ingfromrandomimportrandintfromtimeimportsleep,ctimefromQueueimportQueue
killua_hzl
·
2010-08-05 08:00
python 多线程
pythonimporturllib2importurllibimportbase64importsysimporttimeimportdatetimereload(sys)sys.setdefaultencoding('utf-8')impo
rtthread
ingclassTest
netmouse
·
2010-07-10 13:00
多线程
python
python模拟mysql多客户端并发操作
importMySQLdbimpo
rtthread
ingimportsysdefdb_op_thread_func(i,num_of_op):conn=MySQLdb.conne
tyger
·
2010-06-18 21:00
thread
多线程
sql
mysql
python
import
初识C#多线程
现在放上来,有不足的地方还请大家只出来啊//声明线程池 publicThread[]threadArray; //线程开始 ThreadSta
rtthread
Start=newThreadStart
044384444
·
2010-06-08 15:56
线程
职场
休闲
初识
python threading
/usr/bin/envpythonimpo
rtthread
fromtimeimportsleep,ctimedefloop0(): print'startloop0at:',ctime() sleep
企图穿越
·
2010-05-05 00:00
C++ 多线程编程 封装多线程api 类似java多线程风格
CPlusPlus%e5%a4%9a%e7%ba%bf%e7%a8%8b%e6%ba%90%e4%bb%a3%e7%a0%81.rar Thread类,类似java的Thread te
rtThread
·
2010-04-26 01:00
java多线程
python简单的http服务器
1、Server.py#-*-coding:UTF-8-*- importos importBaseHTTPServer importtime impo
rtthread
ing importurlparse
忧里修斯
·
2010-04-15 16:00
thread
html
python
OS
F#
python线程
impo
rtthread
ingimporttimeimportrandom#生产者classProducer(threading.Thread):def__init__(self,threadName,
chollima
·
2010-03-26 16:00
python
测试
Class
import
简单的python多线程并发
前些天学到的线程,做下记录,以备后用:程序如下:importsys,timeimpo
rtthread
defa(): foriinrange(1,5): time.sleep(0.5
neo1989
·
2010-03-20 09:19
线程
python
职场
休闲
简单的python多线程并发
前些天学到的线程,做下记录,以备后用:程序如下:importsys,timeimpo
rtthread
defa():foriinrange(1,5):time.sleep(0.5)print"\nhello"time.sleep
neo1989
·
2010-03-20 09:19
职场
线程
休闲
Python
简单的python多线程并发
前些天学到的线程,做下记录,以备后用:程序如下:importsys,timeimpo
rtthread
defa(): foriinrange(1,5): time.sleep(0.5
neo1989
·
2010-03-20 09:19
线程
python
职场
休闲
线程的封装技巧:把任意类的成员函数指针作为参数
但是如果我告诉你,我封装的这个线程类里有个成员函数Start,作用是开启线程运行,可以这样调用:classa{public: DWORDThreadFunca(LONGlParam); voidSta
rtThread
oathevil
·
2010-03-17 00:00
thread
c
null
Class
Borland
winapi
关于_WIN32_WINNT
本打算了解一下纤程内容,在试图使用 Conve
rtThread
ToFiber的时候,编译总是出错,提示信息如下:error C2065: 'Conve
rtThread
ToFiber' : undeclared
wapysun
·
2010-03-07 13:00
windows
XP
IE
Microsoft
C#
关于_WIN32_WINNT
本打算了解一下纤程内容,在试图使用Conve
rtThread
ToFiber的时候,编译总是出错,提示信息如下:errorC2065:'Conve
rtThread
ToFiber':undeclaredidentifier
baozi3026
·
2010-03-07 13:00
windows
Microsoft
application
internet
compiler
macros
多线程 传递参数
下面就具体来看看:不需要传递参数,也不需要返回参数我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下: 以下是引用片段:ThreadSta
rtthread
Start=newThreadStart
shiwei0124
·
2010-02-23 14:00
线程池版的SocketServer
需要一个使用线程池的TCPServer.具体的代码如下:fromthreadingimpo
rtThread
fromSocketServerimpo
rtThread
ingMixIn,TCPS
fanzy618
·
2010-02-07 15:00
可爱的Python
C#多线程编程(2):线程的同步
程序的代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Threading;namespaceSta
rtThread
oliver258
·
2010-01-22 10:21
C#
职场
休闲
C#多线程编程(2):线程的同步
程序的代码如下:usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Threading;namespaceSta
rtThread
oliver258
·
2010-01-22 10:21
C#
职场
休闲
上一页
79
80
81
82
83
84
85
86
下一页
按字母分类:
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
其他