Not Equal
浮点数运算中的精度问题
x = 2.1 y = 2.0 difference = round(x - y, 1) if difference == 0.1: print("Equal") else: print("Not Equal")
← 第四题第六题 →