Sinic's recent timeline updates
Sinic

Sinic

V2EX member #57588, joined on 2014-03-06 16:36:12 +08:00
Sinic's recent replies
Sep 7, 2015
Replied to a topic by thought Python python 关于计算的一个怪异问题
遇到这种情况,使用
>>> from decimal import Decimal
>>> Decimal ('1.45') - 1
Decimal ('0.45')
>>> (Decimal ('1.45') - 1 ) * 2
Decimal ('0.90')
Aug 6, 2015
Replied to a topic by pc10201 Python 如何绕过 django 的惰性查询(lazy query)机制?
你是不是用了queryset.iterator()?使用iterator()无法生成cache,遍历同一个queryset时会重复执行查询。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   844 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 21:22 · PVG 05:22 · LAX 14:22 · JFK 17:22
♥ Do have faith in what you're doing.