无法将其存储在文件中

时间:2015-10-18 16:34:43

标签: python

帮助我,我想在文件中存储名称和分数。

name = ("Chiken")
score = 7
classroom_num = int(input("Please enter your classroom number"))
f = open("Classroom %d.txt","w") % (classroom_num)
f.write(name, score)
f.close()

0 个答案:

没有答案