摘要:
转载:https://www.cnblogs.com/jiuyang/p/7815126.html windows安装Python虚拟环境 1、pip install virtualenv 安装virtualenv镜像 3、virtualenv scrapytest 新建virtualenv 4、c 阅读全文
摘要:
Function setCapitalizedAmount(key As String) As String Dim Session As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Set db = Sessi 阅读全文
摘要:
udp: socket --> bind --> sendto/recvfrom --> close tcp(client): socket --> conect() --> send/recv --> close tcp(server): socket --> bind() --> listen 阅读全文
摘要:
# Author:GuoZiLianimport socketdef main(): # 1. 创建套接字 tcp_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) # 2. 获取服务器的IP Port dest_ip = input 阅读全文
摘要:
# Author:GuoZiLianimport socketdef main(): # 1. socket创建一个socket tcp_server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) # 2. bind绑定ip和po 阅读全文
摘要:
# Author:XiangLiangimport threading,timeimport queueq = queue.Queue(maxsize=10)def Producer(name): count = 1 while True: q.put("骨头 %s" %count) print(" 阅读全文
摘要:
# Author:XiangLiangimport queue#q = queue.LifoQueue() #先进后出 #q = queue.PriorityQueue() #优先级 q = queue.Queue(maxsize=3) #固定大小,先进先出 q.put(1)q.put(2)q.pu 阅读全文