09 2021 档案

摘要:fp = open(r'D:\mot.txt','a+')print("",file = fp)fp.close() 2.6.2 阅读全文
posted @ 2021-09-15 00:09 Binnie 阅读(65) 评论(0) 推荐(0)
摘要:print("\n手机店正在打折,活动进行中……")strweek = input("请输入中文星期(如星期一) : ")intTime = int(input("请输入时间中的小时(范围:0~23) : "))#判断是否满足活动参与条件(使用了if条件语句)if (strweek == "星期二" 阅读全文
posted @ 2021-09-14 23:34 Binnie 阅读(87) 评论(0) 推荐(0)
摘要:python = 95 #定义变量,储存Python课程的分数english = 92 #定义变量,储存English课程的分数c = 89 #定义变量,储存C语言课程的分数#输出三个变量的值print("python = " + str(python) + "english = " + str(e 阅读全文
posted @ 2021-09-14 23:32 Binnie 阅读(100) 评论(0) 推荐(0)
摘要:python = 95english = 92c = 89sub = python - cavg = (python + english + c) / 3print("Python课程和C语言课程的分数之差:"+str(sub)+"分\n")print("三门课程的平均分:"+str(avg)+"分 阅读全文
posted @ 2021-09-14 23:30 Binnie 阅读(457) 评论(0) 推荐(0)
摘要: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_s 阅读全文
posted @ 2021-09-14 23:29 Binnie 阅读(158) 评论(0) 推荐(0)
摘要:运行代码: print(" * * * * * \n * * \n* @ @ *\n* *\n* @ *\n* *\n * * \n * * \n * * * * * ") 运行结果: 学号:2020310143041 昵称:Binnie 阅读全文
posted @ 2021-09-05 10:59 Binnie 阅读(55) 评论(0) 推荐(0)