Commit e2a2f6d1 by BellCodeEditor

save project

parent 4a702ef8
Showing with 7 additions and 1 deletions
...@@ -3,12 +3,18 @@ s2={"yu":20,"shu":0,"ying":-19} ...@@ -3,12 +3,18 @@ s2={"yu":20,"shu":0,"ying":-19}
s3={"yu":100,"shu":100,"ying":100} s3={"yu":100,"shu":100,"ying":100}
s={"wu":s1,"n":s2,"叶文彬":s3} s={"wu":s1,"n":s2,"叶文彬":s3}
while True: while True:
name=input("name") name=input("name""退出按a")
if name in s: if name in s:
a=s[name] a=s[name]
print("*"*30) print("*"*30)
for k,v in a.items(): for k,v in a.items():
print(k,v) print(k,v)
elif name=="a":
break
else: else:
print("无此人") print("无此人")
......
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