2012-10-02 63 views

回答

0

你可以使用一個數組:

names = [] 
grades = [] 
for i in n: 
    sn = str(input("What is the student's name? ")) 
    names.append(sn) 
    sg = eval(input("What is the student's grade? ")) 
    grades.append(sg) 
相關問題