彩虹更新中

导航

 

2020年2月3日

摘要: 服务端:import socketimport subprocessimport struct#简易版缺点:struct 的数据i需要在4以内,如果发送的数据较大,会超过I,无法发送。因此需要优化#创建套接字server = socket.socket(socket.AF_INET,socket.S 阅读全文
posted @ 2020-02-03 15:38 彩虹更新中 阅读(135) 评论(0) 推荐(0)
 

2019年5月19日

摘要: #数据结构:menu = { '北京':{ '海淀':{ '五道口':{ 'soho':{}, '网易':{}, 'google':{} }, '中关村':{ '爱奇艺':{}, '汽车之家':{}, 'youku':{}, }, '上地':{ '百度':{}, }, }, '昌平':{ '沙河': 阅读全文
posted @ 2019-05-19 11:19 彩虹更新中 阅读(150) 评论(0) 推荐(0)
 

2019年5月7日

摘要: 格式化: name=input("Name")job=input("Job")age=input("Age")hometown=input("hometown")info="" info of %s Name: %sAge: %sJob: %sHometown:%s End ""%(name,nam 阅读全文
posted @ 2019-05-07 22:18 彩虹更新中 阅读(142) 评论(0) 推荐(0)