09 2021 档案

第二周读书笔记
摘要:运行超市抹零结账行为 money_all=56.75+72.91+88.50+26.37+68.51money_all_str=str(money_all)print("商品总金额为:"+money_all_str)money_real=int(money_all)money_real_str=st 阅读全文

posted @ 2021-09-14 00:42 吃鱼拯救世界 阅读(53) 评论(0) 推荐(0)

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

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

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

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

植物大战僵尸——石头怪
摘要:print(" * * * * * \n * * \n* @ @ *\n* *\n* @ *\n* *\n * * \n * * \n * * * * * 3049") 阅读全文

posted @ 2021-09-05 11:29 吃鱼拯救世界 阅读(68) 评论(0) 推荐(0)

导航