Sinic 最近的时间轴更新
Sinic

Sinic

V2EX 第 57588 号会员,加入于 2014-03-06 16:36:12 +08:00
Sinic 最近回复了
2015-09-07 10:24:21 +08:00
回复了 thought 创建的主题 Python python 关于计算的一个怪异问题
遇到这种情况,使用
>>> from decimal import Decimal
>>> Decimal ('1.45') - 1
Decimal ('0.45')
>>> (Decimal ('1.45') - 1 ) * 2
Decimal ('0.90')
2015-08-06 18:21:31 +08:00
回复了 pc10201 创建的主题 Python 如何绕过 django 的惰性查询(lazy query)机制?
你是不是用了queryset.iterator()?使用iterator()无法生成cache,遍历同一个queryset时会重复执行查询。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   922 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 18:59 · PVG 02:59 · LAX 11:59 · JFK 14:59
Developed with CodeLauncher
♥ Do have faith in what you're doing.