📜  逗号后的 2 个数字 python 代码示例

📅  最后修改于: 2022-03-11 14:46:54.248000             🧑  作者: Mango

代码示例2
num = 0.4826752452832

print(round(num,2)) #in this case we want 2 numbers after the comma

# terminal :
# 0.48