- 博客(3)
- 收藏
- 关注
原创 flask SQLAlchemy查询缓存问题
使用model.query查询数据后会缓存着,数据源更新后查询出来的数据还是之前查询的缓存,使用db.session.query解决该问题。 # 原先问题代码 # pics = Info.query.filter(Info.id>config.start_id).all() # 解决代码 pics = db.session.query(Info).filter(Info.id>config.start_id).all() ...
2020-10-28 01:17:29
1244
原创 快速排序,python实现与测试
import random ''' 随机列表 ''' def randmom_list(): list = [] i=0 key = random.randint(10,30) while i <= key: list.append(random.randint(1,100)) i = i+1 print(list) return list ''' 快速排序 ''' def Quicksort(list,L,R.
2020-06-28 14:08:00
3057
原创 硬盘安装Ubuntu时出现filesystem type is ntfs partition type 0x07
title Ubuntu 11.04 root (hd0,3) kernel (hd0,3)/vmlinuz boot=casper iso-scan/filename=/ubuntu11.04.iso ro quiet splash locale=zh_CN.UTF-8 initrd (hd0,3)/initrd.lz 确认以上红字的文件名是否与本地的文件名相同,包括后缀;
2014-01-01 13:35:57
10082
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅