在Python 中,你可以使用 format() 函数来保留一位小数,并且不进行四舍五入。 下面是一个例子: num = 123.456 formatted_num = format(num, ...
確定! 回上一頁