Commit f8226f36 by BellCodeEditor

save project

parent f414478f
Showing with 19 additions and 14 deletions
A=int(input("请输入年份:")) A=int(input("请输入学生人数:"))
A=int(input("请输入年份:")) A=int(input("请输入学生人数:"))
if A%4==0: B=int(input("请依次输入学生成绩:"))
print("闰年") print("班级总成绩")
else: print("平均成绩")
print("平年") \ No newline at end of file
\ No newline at end of file
dict_hero={'赵一':30,'王三':40,'张三':50} dict={'小明':89,'小王':87,'小章':90,'小亮':98,'小华':67,'小张':100}
dict_hero={'赵一':30,'王三':40,'张三':50} dict={'小明':89,'小王':87,'小章':90,'小亮':98,'小华':67,'小张':100}
print(dict_hero) a=input("请输入你的姓名")
dict_hero['唐三']=60 b=input("请输入你最新的成绩")
print(dict_hero) if a in dict:
if "赵一" in dict_hero: if int(b)>dict[a]:
print(dict_hero["赵一"]) dict[a]=int(b)
print("请稍等"+a+"分数已上传"+b+"分")
else:
print("请稍等"+a+"成绩未超过上次")
else:
dict[a]=int(b)
print("请稍等"+a+"同学,你的第一次成绩已上传"+b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment