摘要:
参考: 1. The Clean Architecture in Python (Brandon Rhodes) 2. Python Best Practice Patterns (Vladimir Keleshev) 3. Transforming Code into Beautiful, Idi 阅读全文
摘要:
PooledDB 有这么几个参数 mincached : the initial number of idle connections in the pool (the default of 0 means no connections are made at startup) maxcached: 阅读全文
摘要:
Item 22: Prefer Helper Classes Over Bookkeeping with Dictionaries and Tuples For example, say you want to record the grades of a set of students whose 阅读全文
摘要:
Item 14: Prefer Exceptions to Returning None Functions that returns None to indicate special meaning are error prone because None and other values (e. 阅读全文
摘要:
Item 2: Follow the PEP 8 Style Guide Naming Expressions and Statements Always use absolute names for modules when importing them, not names relative t 阅读全文