摘要: mysqlbinlog -d 数据库名 binlog绝对地址 > recover_ivr.sql 阅读全文
posted @ 2020-12-25 09:08 swortect 阅读(71) 评论(0) 推荐(0)
摘要: 喜叔z 2019.08.11 17:13:35 字数 40 阅读 490 快速生成models 1.安装flask sqlacodegen pip install flask sqlacodegen 2.设计表并确保数据库中由此表结构 3.使用flask sqlacodegen创建models fl 阅读全文
posted @ 2020-04-13 22:36 swortect 阅读(301) 评论(0) 推荐(0)
摘要: 备份源 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 阅读(641) 评论(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 阅读(410) 评论(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 阅读(1771) 评论(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 阅读(1124) 评论(0) 推荐(0)