1. 对open理解
quizFile = open('captalsquiz%s.txt' % (quizNum + 1), 'w')
open函数以写模式和添加模式打开不存在的文件时,可以自行创建文件、
2.创建答案选项
answerOptions = wrongAnswers + [correctAnswer]
为什么创建答案选项后面的‘correctAnswer’要加中括号?why?
correctAnswer = capitals[states[questionNum]]
wrongAnswers = list(capitals.values())
创建答案选项中为什么正确答案为key?错误答案为value?这是反了吧