我是Python新手。我想让公式的结果为小数点后1位,但四舍五入。我可以添加要打印的公式吗?也许有装饰吗?那也可以工作
谢谢
from math import floor x = 8.64 x = floor(x) print(x)
8