03 2020 档案

摘要:备份源 mv /etc/yum.repos.d/CentOS Base.repo /etc/yum.repos.d/CentOS Base.repo.backup 2、下载新的CentOS Base.repo 到/etc/yum.repos.d/ CentOS 5 (目前已经停用了,无效) wget 阅读全文
posted @ 2020-03-27 13:34 swortect 阅读(642) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/sinat_32651363/article/details/87880225 https://blog.csdn.net/sinat_32651363/article/details/87882067 https://blog.csdn.net/sina 阅读全文
posted @ 2020-03-09 16:59 swortect 阅读(424) 评论(0) 推荐(0)
摘要:xpath速度确实快....bs_info = bs(restext, 'lxml')selector = lxml.etree.HTML(restext)s1 = time.time()rank=selector.xpath('//*[@class="pic"]//em/text()')e1 = 阅读全文
posted @ 2020-03-06 09:24 swortect 阅读(1772) 评论(0) 推荐(0)
摘要:select方法能用css选择器,非常友好,于是想对比一下是否效率上更优秀 s1=time.time() star=[x.text for x in bs_info.find_all('span',{'class':'rating_num'})] e1 = time.time() print(e1- 阅读全文
posted @ 2020-03-01 18:02 swortect 阅读(1132) 评论(0) 推荐(0)