格式化输出 信计一班罗逸凡
时间:2021-09-13 15:05:31
收藏:0
阅读:22
x1 = float(input("输入一个数:"))
x2 = round(x1,3)
x_str = str(x2)
print("格式化该数并保留三位小数:{}".format(x2))

学号:37
原文:https://www.cnblogs.com/lyf238/p/15259830.html
评论(0)