To read, you open the file you have written in a similar way as before, except you use 'r' instead of 'w'. Then you you iterate through each line of your newly-read data, strip the newline characters, and evaluate the number written on each line.
data = open('scores.txt', 'r')
for line in data:
grade = line.rstrip("
")
if int(grade) >= 90:
print(grade, "A")
elif int(grade) >= 80:
print(grade, "B")
elif int(grade) >= 70:
print(grade, "C")
elif int(grade) >= 60:
print(grade, "D")
else:
print(grade, "F")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…