摘要:
#_author:来童星#date:2019/12/11#1.拼接字符串mon_en='Remerbrance is a form of meeting,Frgetfulness is a form of freedom 'mon_cn='记忆是一种相遇,遗忘是一种自由'print(mon_en+' 阅读全文
posted @ 2019-12-11 22:21
Stary_tx
阅读(214)
评论(0)
推荐(0)
摘要:
#_author:来童星#date:2019/12/11#Pipefrom multiprocessing import Process, Pipedef f(conn): conn.send([42, None, 'hello']) conn.close()if __name__ == '__ma 阅读全文
posted @ 2019-12-11 22:17
Stary_tx
阅读(298)
评论(0)
推荐(0)
摘要:
#_author:来童星#date:2019/12/11#Managersfrom multiprocessing import Process, Managerdef f(d, l,n): d[n] = '1' d['2'] = 2 d[0.25] = None l.append(n) print 阅读全文
posted @ 2019-12-11 21:54
Stary_tx
阅读(243)
评论(0)
推荐(0)
摘要:
#_author:来童星#date:2019/12/11# 进程间通讯 # 不同进程间内存是不共享的,要想实现两个进程间的数据交换,可以用以下方法:# Queues# 使用方法跟threading里的queue类似:from multiprocessing import Process, Queue 阅读全文
posted @ 2019-12-11 21:46
Stary_tx
阅读(143)
评论(0)
推荐(0)

浙公网安备 33010602011771号