码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
gevent和threading导入顺序的错误
发现这样一个问题: Exception KeyError: KeyError(4535228368,) in ignored 在程序执行成功也会报这个错误,网上搜到一个[答案][1],原因是用到了gevent,但是threading会在导入gevent之前导入,所以正确的做法是...
分类:其他好文   时间:2014-07-22 08:28:33    阅读次数:235
python threading queue
import queue,threading l=threading.Lock()class MyThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) global...
分类:编程语言   时间:2014-07-22 00:20:34    阅读次数:189
复制数组
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Collections; namespaceConsoleApplication4 { classProgram { staticvoidMain(string[]args) { //值类型成功复制(复制所有的值) int[]t={1,1..
分类:其他好文   时间:2014-07-21 12:46:13    阅读次数:185
Array类
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; usingSystem.Collections; namespaceConsoleApplication4 { classProgram { staticvoidMain(string[]args) { //Array类是一个抽象类 //元素的类型,数组的大..
分类:其他好文   时间:2014-07-21 12:32:14    阅读次数:162
C#_判断2个对象的值是否相等
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;namespace ConsoleA...
分类:其他好文   时间:2014-07-21 08:07:57    阅读次数:311
ExeCuteManager
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using WindowsFormsApplication3.Jobs;using Win...
分类:其他好文   时间:2014-07-21 00:09:45    阅读次数:267
锯齿数组
usingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication3 { classProgram { staticvoidMain(string[]args) { int[][]arr=newint[3][]; arr[0]=newint[2]{1,2,}; arr[1]=newint[6]{3,4,..
分类:其他好文   时间:2014-07-20 23:12:43    阅读次数:271
ADO.NET之填充DataSet类
主要使用数据适配器SqlDataAdapter类进行填充DataSet类代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Task...
分类:Web程序   时间:2014-07-20 22:19:11    阅读次数:251
分享一套简单的CodeSmith三层模板
Model:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data;namespace { ...
分类:其他好文   时间:2014-07-20 10:08:00    阅读次数:406
2.大话设计模式-策略模式
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignMo.....
分类:其他好文   时间:2014-07-19 18:23:06    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!