Commit 57e1e08c by BellCodeEditor

auto save

parent 15308f38
Showing with 2 additions and 13 deletions
s={"语文":90,"数学":91,"英语":99,"科学":92,"体育":10} with open(r'C:\Users\14663\Desktop\1.txt','w',encoding="utf-8") as file1:
s2={"语文":92,"数学":89,"英语":89,"科学":95,"体育":80} file1.write("孙凯瑞")
s3={"语文":95,"数学":97,"英语":94,"科学":97,"体育":90}
name={"孙凯瑞":s,"小明":s2,"小红":s3}
while True:
c=input("请输入名字")
d=name[c]
if c in name:
for k,v in d.items():
print(k,v)
else:
print("名字错了")
continue
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