Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Python 3.6.2
>>> import sys >>> a = 'ñ' >>> sys.getsizeof(a) 74 >>> float(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: could not convert string to float: 'ñ' >>> sys.getsizeof(a) 77 >>>
@digitalsatori 在 WTF 中说:
getsizeof
转换失败后就变大了?
是的,这应该是Python 3的一个Bug
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您下次访问时都将自动回到上次浏览的位置,并可选择接收新回复的通知(通过电子邮件或推送通知)。您还可以收藏帖子、为帖子点赞,以此向其他社区成员表达您的感谢。
有了你的建议,这篇帖子会更精彩哦 💗