怎么用python完成成績查詢?
d={"Mike":98,"Michale":76,"Thomas":78,"Jane":86}marks=int(d[raw_input("Type the name:")])print(marks)
這樣就可以了
怎么用python完成成績查詢?
d={"Mike":98,"Michale":76,"Thomas":78,"Jane":86}marks=int(d[raw_input("Type the name:")])print(marks)
這樣就可以了