#方法1: print("%.1f" % 0.13333) #方法2 print("{:.1f}".format(0.13333)) #方法3 round(0.13333, 1) 相关文章: 2021-05-27 2022-12-23 2022-12-23 2021-12-23