摘要: https://blog.csdn.net/qq_52480014/article/details/114264635 import tkinter as tk # Python 3 import # import Tkinter as tk # Python 2 import root = tk. 阅读全文
posted @ 2021-08-17 22:15 该显示昵称已被使用了 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 根据node个数,选出数字中node个数的数据进行验证 import time from multiprocessing import Process import os from multiprocessing import Pool import os, time, random # 多线程二分 阅读全文
posted @ 2021-08-17 15:45 该显示昵称已被使用了 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 思路1,master等待远端返回结果 from multiprocessing import Pool import os, time, random # 在远端执行的任务进程,,hang住等待返回 def long_time_task(ip,url): print('Run task %s-%s 阅读全文
posted @ 2021-08-17 15:25 该显示昵称已被使用了 阅读(35) 评论(0) 推荐(0) 编辑
摘要: https://www.liaoxuefeng.com/wiki/1016959663602400/1017628290184064 join # 1. 一个 from multiprocessing import Process import os # 子进程要执行的代码 def run_proc 阅读全文
posted @ 2021-08-17 10:28 该显示昵称已被使用了 阅读(205) 评论(0) 推荐(0) 编辑