Commit 34921aa4 by BellCodeEditor

save project

parent 4a46bf87
Showing with 8 additions and 21 deletions
a={'语文':78,'数学':99,'英语':34}
b={'语文':87,'数学':92,'英语':100}
c={'语文':94,'数学':98,'英语':93}
xb={'语文':99.5,'数学':100,'英语':100}
d={'语文':95,'数学':100,'英语':82}
m={'语文':65,'数学':71,'英语':86}
student={'雄楚墨':a,'雄尔':b,'雄达':c,'王聪聪':xb,'姜晓亚':d,'米肖权':m}
while True:
print('退出请按q')
o=input('请输入要查询的名字:')
print("*"*20)
if o in student:
students=student[o]
for k,v in students.items():
print(k,v)
elif o=='q':
break
else:
print('您输入的名字不正确,请重新输入')
print("*"*20)
import csv
data=['语文','数学','英语']
with open("零.csv","w",encoding="utf-8") as csvfile:
writer=csv.writer(csvfile)
writer.writerow(data)
\ No newline at end of file
语文,数学,英语
语文,数学,英语
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