会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
比岸
博客园
首页
新随笔
联系
订阅
管理
2019年5月7日
windows安装Python虚拟环境
摘要: 转载: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 比岸
阅读(7614)
评论(0)
推荐(0)
2019年4月24日
计算大写金额
摘要: 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 比岸
阅读(171)
评论(0)
推荐(0)
2019年4月2日
网络连接流程
摘要: udp: socket --> bind --> sendto/recvfrom --> close tcp(client): socket --> conect() --> send/recv --> close tcp(server): socket --> bind() --> listen
阅读全文
posted @ 2019-04-02 20:06 比岸
阅读(144)
评论(0)
推荐(0)
06.tcp_下载_client
摘要: # 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 比岸
阅读(131)
评论(0)
推荐(0)
05_tcp_Server
摘要: # 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 比岸
阅读(158)
评论(0)
推荐(0)
2019年2月27日
Python生产者和消费者
摘要: # 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 比岸
阅读(110)
评论(0)
推荐(0)
2019年2月26日
python 队列
摘要: # 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 比岸
阅读(131)
评论(0)
推荐(0)
公告