int(“1.6”),int(1.6)输出结果?

 

>>> int("1.6")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '1.6'
>>> float("1.6")
1.6
>>>

 

posted @ 2019-07-15 14:41  anobscureretreat  阅读(427)  评论(0编辑  收藏  举报