现在我的代码抛出了另一个TypeError

时间:2017-06-13 04:16:01

标签: python-3.x

我一直在研究幸运之轮的Python实现已经有一段时间了,我只是测试了代码并且它抛出了另一个TypeError。代码在这里: https://gist.github.com/HarrySlaughter/ea58b537f3ada041953cf6119bb0a754

并且出现了错误:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    wheel_of_fortune()
  File "C:\Users\Harry\Documents\randompythonprograms\wheeloffortune.py", line 53, in wheel_of_fortune
    player1firstturn(player1name, player2name, player3name, text, blank_text, letters, consonants, vowels, vwit, 0, 0, 0)
  File "C:\Users\Harry\Documents\randompythonprograms\wheeloffortune.py", line 187, in player1firstturn
    player1do(prize, choice, player1name, player2name, player3name, text, blank_text, letters, consonants, vowels, vwit, player1amount, player2amount, player3amount)
  File "C:\Users\Harry\Documents\randompythonprograms\wheeloffortune.py", line 229, in player1do
    player1firstturn(player1name, player2name, player3name, text, blank_text, letters, consonants, vowels, vwit, player1amount, player2amount, player3amount)
  File "C:\Users\Harry\Documents\randompythonprograms\wheeloffortune.py", line 167, in player1firstturn
    player2firstturn(player1name, player2name, player3name, text, blank_text, letters, consonants, vowels, vwit, player1amount, player2amount, player3amount)
  File "C:\Users\Harry\Documents\randompythonprograms\wheeloffortune.py", line 436, in player2firstturn
    player2do(prize, choice, player1name, player2name, player3name, text, blank_text, letters, consonants, vowels, vwit, player1amount, player2amount, player3amount)
TypeError: player2do() takes 13 positional arguments but 14 were given

谁能告诉我为什么会这样?

0 个答案:

没有答案