Changed in version 2.7: A comparison
between a float instance x and a
Decimal instance y now returns a
result based on the values of x and y.
In earlier versions x < y returned the
same (arbitrary) result for any
Decimal instance x and any float
instance y.
从documentation of the decimal module:
所以看起来这是一个bug/缺失的特性,你需要做的就是升级。在
相关问题 更多 >
编程相关推荐