def save_game(myChosenLeague, myChosenClub, mySaveNum=0, myCurrentCity=0):
myShelfFile = "./save"+str(mySaveNum)
print("Save file: {0}".format(myShelfFile))
myOpenShelf = shelve.open(myShelfFile)
myOpenShelf['cities'] = cities
myOpenShelf['clubs'] = clubs
myOpenShelf['humans'] = humans
myOpenShelf['leagues'] = leagues
myOpenShelf['managers'] = managers
myOpenShelf['chairmans'] = chairmans
myOpenShelf['currentCity'] = myCurrentCity
myOpenShelf['chosenClub'] = myChosenClub
myOpenShelf['chosenLeague'] = myChosenLeague
myOpenShelf.close()
评论列表
文章目录