2018年12月11日

线程

摘要: import threadingfrom time import ctime,sleep### def music(func):# for i in range(2):# print ("I was listening to %s. %s" %(func,ctime()))# sleep(4)## 阅读全文

posted @ 2018-12-11 15:44 袁佳佳 阅读(161) 评论(0) 推荐(0)

重复请求

摘要: def post_req(url, data, *args, **kargs): pro = 0 req_content = '数据请求失败' headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKi 阅读全文

posted @ 2018-12-11 14:02 袁佳佳 阅读(142) 评论(1) 推荐(0)

导航