Annihilater / HexoBlogComments

HexoBlogComments
https://www.klause.cn
0 stars 0 forks source link

Python Flask 高级编程视频笔记2 | 湮灭星空 #16

Open Annihilater opened 4 years ago

Annihilater commented 4 years ago

https://www.klause.cn/2019/04/12/python-flask-gao-ji-bian-cheng-shi-pin-bi-ji/python-flask-gao-ji-bian-cheng-shi-pin-bi-ji-2/

我们再来分析一下把rencent函数放到Gift模型下面的合理性? Gift模型按照我们的常规的思维可以把它理解成数据库里面的一条记录。那么既然Gift代表的是一条记录,一条记录里面有这样的rencent取最近的很多条记录会感觉非常的不合理