摘要: 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 阅读全文
posted @ 2016-06-19 21:18 Herbert_Kwok 阅读(236) 评论(0) 推荐(0)
摘要: Item 14: Prefer Exceptions to Returning None Functions that returns None to indicate special meaning are error prone because None and other values (e. 阅读全文
posted @ 2016-06-19 10:12 Herbert_Kwok 阅读(241) 评论(0) 推荐(0)