06 2021 档案

python3 多线程
摘要:from multiprocessing import Pool def f(x): sleep(1) print(1) sleep(1) print(2) return x*x if __name__ == '__main__': plist = [1, 2, 3, 4, 5, 6] with P 阅读全文

posted @ 2021-06-29 17:24 Karlkiller 阅读(41) 评论(0) 推荐(0)

python3 spider [ urllib.request ]
摘要:# # 导入urllib库的urlopen函数 # from urllib.request import urlopen # # 发出请求,获取html # html = urlopen("https://www.baidu.com/") # # 获取的html内容是字节,将其转化为字符串 # ht 阅读全文

posted @ 2021-06-10 16:00 Karlkiller 阅读(58) 评论(0) 推荐(0)

导航