摘要:
# Author:Winter Liu is coming! import time def process_bar(num, total): rate_num = int(num*100/total) if rate_num == 100: r = "\r{}{}%\n".format("*"*r 阅读全文
摘要:
# Author:Winter Liu is coming!# 队列自动加锁 import time import random from multiprocessing import Process, Queue def customer(q, name): while True: food = 阅读全文
摘要:
# Author:Winter Liu is coming! import time from multiprocessing import Process, Lock import json def search(i): with open("ticket_data", mode="r", enc 阅读全文
摘要:
服务端: # Author:Winter Liu is coming! import socket from multiprocessing import Process def func(conn,addr): print("{} is connect!".format(addr)) try: w 阅读全文
摘要:
socket建立网络连接,注意文件分割后,传输完成的检测 pickle 封装文件信息:文件名、文件大小、md5码 os 文件路径、文件名、文件大小 hashlib md5码生成 server端 # Author:Winter Liu is coming! import socket import p 阅读全文