格式化输出

a=eval(input())
print("{:.3f}".format(a))
原文地址:https://www.cnblogs.com/670ling/p/12547277.html