摘要: 对于一些貌似很简单常见的函数,最好还是去读一下Python文档,否则当你被某个BUG折磨得死去活来时,还不知根源所在.尤其是Python这种不断更新的语言.(python 2.7 的round和3.3.2不一样)3.3.2官方文档对round的定义round(number[,ndigits])Return the floating point valuenumberrounded tondigitsdigits after the decimal point. Ifndigitsis omitted, it defaults to zero. Delegates tonumber.__roun 阅读全文
posted @ 2013-11-19 01:04 LisPythoniC 阅读(10687) 评论(1) 推荐(2) 编辑