python小数取整的3种处理方法

1 import math 2 3 a = [10.001, 10.49999, 10.5, 10.5001, 10.777777, 10.9999] 4 result1 = [] 5 result2 = [] 6 result3 = [] 7 8 for i in a: 9 result1.app
posted @ 2022-05-24 18:58  平行时空的旅者  阅读(1564)  评论(0编辑  收藏  举报