Commit fa26ff9e by BellCodeEditor

save project

parent 3faf4b37
Showing with 12 additions and 2 deletions
"""读取csv文件"""" import csv
\ No newline at end of file
name = input("请输入你要查询的学号:")
name_real = str(name) + 1
subject = input("请输入你要查询的项目序号:")
subject_real = str(subject)
with open("report.csv","r") as f:
f_read = csv.reader(f)
f_list = list(f_read)
print(f_list[name_real][subject])
\ 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