码迷,mamicode.com
首页 >  
搜索关键字:threading    ( 3244个结果
线程和asyncio的比较
本文借助动态转圈圈的例子展示 import sys import itertools import time import threading class Signal: go = True def spin(msg, signal): write, flush = sys.stdout.write ...
分类:编程语言   时间:2019-11-27 10:47:22    阅读次数:107
递归和多线程demo
import zipfile import optparse, datetime, os from threading import Thread global i, ab i = 0 #记录测试次数 ab = '1234567890qwertyuioplkjhgfdsazxcvbnmQWERTYU ...
分类:编程语言   时间:2019-11-26 19:53:05    阅读次数:84
c# System.Threading.Channels.Channel<T>的使用
先贴一个代码 class Program { static void Main(string[] args) { var channels = Channel.CreateBounded<Mail>(2); var mail1 = new Mail(1, $"Message #{1}"); var ...
分类:Windows程序   时间:2019-11-25 20:33:21    阅读次数:407
俄罗斯方块
#coding=utf-8 from tkinter import * from random import * import threading from tkinter.messagebox import showinfo from tkinter.messagebox import askqu ...
分类:其他好文   时间:2019-11-24 19:09:13    阅读次数:63
WPF customize DelegateCommand
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using... ...
分类:Windows程序   时间:2019-11-24 17:19:21    阅读次数:74
C# webclient progresschanged downlodfileCompleted
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Diagnostics; using Sy... ...
分类:Windows程序   时间:2019-11-23 21:42:28    阅读次数:82
python多进程、多线程
一:多线程和多进程 进程是多个资源的集合。 线程是就是进程里面具体干活的。 线程和线程之间是互相独立的。 二:多线程使用threading模块 启用多线程: import threading def down_load(): time.sleep(5) print("运行完了") t = threa ...
分类:编程语言   时间:2019-11-23 16:39:02    阅读次数:69
多播委托的实现
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { cl ...
分类:其他好文   时间:2019-11-21 10:22:14    阅读次数:83
多任务编程-线程
##线程from threading import Thread def func(a): print(a) p = Thread(target=func, args=('a',))p.setDaemon(True)p.start()p.join() from threading import Th ...
分类:编程语言   时间:2019-11-19 14:16:53    阅读次数:75
并发网络通信-多线程
多线程"""多线程网络网络并发编程 TCP """from socket import *from threading import Threadimport os def handle(cf):# 客户专用套接字处理客户信息(cf本身已经内涵客户端IP) while True: try: data ...
分类:编程语言   时间:2019-11-19 14:09:41    阅读次数:90
3244条   上一页 1 ... 34 35 36 37 38 ... 325 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!