In python, you have floats and decimals that can be rounded. ... float and convert it to a decimal x = Decimal(16.0/7) # Then we round it to 2 places output ...
確定! 回上一頁