擅长:python、mysql、java
<p>我的问题是editPerson方法中的一个错误。我不得不改变:</p>
<pre><code>def editPlayer(teamRoster):
oldName = input("Please enter the player\'s name you would like to change:")
if oldName in teamRoster:
playerName = input("What is the player\'s new name:")
playerPhoneNumber = input("What is the player\'s new phone number:")
playerJersyNumber = input("What is the player\'s new jersey number:")
teamRoster[oldName] = (playerName, playerPhoneNumber, playerJersyNumber)
else:
print(oldName, "was not found in the team roster!")
return teamRoster
</code></pre>
<p>到</p>
^{pr2}$
<p>我需要做的就是把花名册,这样球员就可以被插入球队名册字典。在</p>