格式化输出

a=float(input())
print("{:.3f}".format(a))

 

posted @ 2020-03-23 20:10  李嘉豪28  阅读(81)  评论(0)    收藏  举报