Sololearn Python 闯关解答 (Floats)


Which of these will not be stored as a float?

答案为 7

因为7 是整数 (int)





Fill in the blank with the output of this code.
>>> 1 + 2 + 3 + 4.0 + 5

答案为 15.0

因为与 浮点数 4.0 相加, 所以结果为浮点数 15.0

评论

此博客中的热门博文

Sololearn Python 闯关解答 (Simple Operations)