摘要:
进程、多进程、进程池 进程总概述 进程 from multiprocessing import Process import os # 子进程要执行的代码 def run_proc(name): print('Run child process %s (%s)...' % (name, os.get 阅读全文
posted @ 2020-09-24 19:16
程序猿-悟空
阅读(180)
评论(0)
推荐(0)
摘要:
列表表达式 a_range = range(10) # 对a_range执行for表达式 a_list = [x * x for x in a_range] # a_list集合包含10个元素 print(a_list) # 嵌套生成 e_list = [[x, y, z] for x in ran 阅读全文
posted @ 2020-09-24 09:58
程序猿-悟空
阅读(322)
评论(0)
推荐(0)