摘要: 转载:https://www.cnblogs.com/jiuyang/p/7815126.html windows安装Python虚拟环境 1、pip install virtualenv 安装virtualenv镜像 3、virtualenv scrapytest 新建virtualenv 4、c 阅读全文
posted @ 2019-05-07 11:01 比岸 阅读(7529) 评论(0) 推荐(0) 编辑
摘要: Function setCapitalizedAmount(key As String) As String Dim Session As New NotesSession Dim db As NotesDatabase Dim doc As NotesDocument Set db = Sessi 阅读全文
posted @ 2019-04-24 15:32 比岸 阅读(153) 评论(0) 推荐(0) 编辑
摘要: udp: socket --> bind --> sendto/recvfrom --> close tcp(client): socket --> conect() --> send/recv --> close tcp(server): socket --> bind() --> listen 阅读全文
posted @ 2019-04-02 20:06 比岸 阅读(136) 评论(0) 推荐(0) 编辑
摘要: # Author:GuoZiLianimport socketdef main(): # 1. 创建套接字 tcp_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) # 2. 获取服务器的IP Port dest_ip = input 阅读全文
posted @ 2019-04-02 15:39 比岸 阅读(123) 评论(0) 推荐(0) 编辑
摘要: # Author:GuoZiLianimport socketdef main(): # 1. socket创建一个socket tcp_server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) # 2. bind绑定ip和po 阅读全文
posted @ 2019-04-02 14:42 比岸 阅读(152) 评论(0) 推荐(0) 编辑
摘要: # Author:XiangLiangimport threading,timeimport queueq = queue.Queue(maxsize=10)def Producer(name): count = 1 while True: q.put("骨头 %s" %count) print(" 阅读全文
posted @ 2019-02-27 00:16 比岸 阅读(106) 评论(0) 推荐(0) 编辑
摘要: # Author:XiangLiangimport queue#q = queue.LifoQueue() #先进后出 #q = queue.PriorityQueue() #优先级 q = queue.Queue(maxsize=3) #固定大小,先进先出 q.put(1)q.put(2)q.pu 阅读全文
posted @ 2019-02-26 23:44 比岸 阅读(126) 评论(0) 推荐(0) 编辑