Consider a game, where both the computer and the user come up with a number. (想出一个游戏,用户和电脑都出一个数字)
a. If both the numbers sum up to an even number, the player wins and the message is displayed. (如果两个数字相加为偶数,则玩家获胜,并且print)
b. The game keeps repeating until the player decides to quit (游戏持续进行,知道玩家决定退出,按q退出游戏)
C. Let's keep a score of who won how many times. Display(print) the score on quit. (计算玩家和电脑分别获胜的次数,并且在按q退出之后显示成绩)
在学python课时候遇到的一个麻烦