Commit b0da1286 by BellCodeEditor

auto save

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