格式化输出

数字=float(input("请输入一个数:"))
print("{:.3f}".format(数字))

 

posted on 2021-09-12 14:44  吃鱼拯救世界  阅读(48)  评论(0)    收藏  举报

导航