会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
swortect
博客园
首页
新随笔
联系
订阅
管理
2020年12月
binlog 生成恢复语句
摘要: mysqlbinlog -d 数据库名 binlog绝对地址 > recover_ivr.sql
阅读全文
posted @ 2020-12-25 09:08 swortect
阅读(71)
评论(0)
推荐(0)
2020年4月
使用flask-sqlacodegen生成models文件
摘要: 喜叔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)
2020年3月
树莓派 centos7安装 python3.7过程
摘要: 备份源 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)
python基于socket实现WebSocket简易实现
摘要: 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)
bs4和xpath比较
摘要: 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)
bs4 的select 和find_all方法效率对比
摘要: 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)
公告