📅  最后修改于: 2022-03-11 14:45:36.048000             🧑  作者: Mango
代码示例1
my_list = [1.000, 2.41, 2.5566778]
my_rounded_list = [ round(elem, 2) for elem in my_list ]
my_rounded_list == [1.00, 2.41, 2.56]