摘要: prefetch()类方法: prefetch_related, on the other hand, does a separate lookup for each relationship, and does the 'joining' in Python. This allows it to 阅读全文
posted @ 2018-11-04 22:32 吉元吉 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 2019年0119更新 ipython自动重载 官方文档 需要注意的一点是,不一定每次一都起作用。 不想打开ide,简单写写代码,用到ipython,所以记录一些内容以便灵活使用。 ipython是建立在cpython上的一个交互型解释器,用好它可以更便利的调试程序,和代替系统shell。 查看与切 阅读全文
posted @ 2018-11-04 20:00 吉元吉 阅读(1094) 评论(0) 推荐(1) 编辑
摘要: 性能上c真的快了很多 用c算30个饼的情况,用递归的方法,3秒就ok了。 python要110秒。 阅读全文
posted @ 2018-11-04 00:04 吉元吉 阅读(225) 评论(0) 推荐(0) 编辑