2021年9月12日

格式化输出

摘要: 数字=float(input("请输入一个数:"))print("{:.3f}".format(数字)) 阅读全文

posted @ 2021-09-12 14:44 吃鱼拯救世界 阅读(48) 评论(0) 推荐(0)

计算矩形面积

摘要: longth=float(input("请输入矩形的长:"))width=float(input("请输入矩形的宽:"))面积=longth*widthprint(round(面积,2)) 阅读全文

posted @ 2021-09-12 01:31 吃鱼拯救世界 阅读(210) 评论(0) 推荐(0)

导航