摘要: 将pip源更换到国内镜像用pip管理工具安装库文件时,默认使用国外的源文件,因此在国内的下载速度会比较慢,可能只有50KB/s。幸好,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度可达2MB/s。其中,比较常用的国内镜像包括: (1)阿里云 http://mirrors.aliyun.c 阅读全文
posted @ 2022-04-03 18:43 墨子32 阅读(515) 评论(0) 推荐(0)
摘要: # BF算法 def BF(str1,str2): halen = len(str1) nelen = len(str2) j = 0 for i in range(halen): if j == nelen: break if str1[i] == str2[j]: j = j+1 else: i 阅读全文
posted @ 2021-04-23 16:39 墨子32 阅读(354) 评论(0) 推荐(0)
摘要: from lxml import etree import requests header = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Content-Type": "applic 阅读全文
posted @ 2021-01-25 11:43 墨子32 阅读(229) 评论(0) 推荐(0)