Skip to main content
blog.csdn.net/...1606067.aspx - Cached
This link has been bookmarked by 1 people . It was first bookmarked on 10 Sep 2008, by June.
python 技巧 经验 基础 原理 知识
注意当没有使用print时,python解释器使用repr方法获得它需要显示的对象的字符串形式,对浮点数来说,
repr(float)取到小数点后17位;如果使用print,调用的是str方法:
>>> print 0.10.1
1 more annotation...
Join Diigo for a free account, or sign in if you are already a member.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.