本文整理汇总了Python中trainer.Trainer.print_pokemons_objects_name方法的典型用法代码示例。如果您正苦于以下问题:Python Trainer.print_pokemons_objects_name方法的具体用法?Python Trainer.print_pokemons_objects_name怎么用?Python Trainer.print_pokemons_objects_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类trainer.Trainer
的用法示例。
在下文中一共展示了Trainer.print_pokemons_objects_name方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: int
# 需要导入模块: from trainer import Trainer [as 别名]
# 或者: from trainer.Trainer import print_pokemons_objects_name [as 别名]
""")
while True:
try:
opt = int(input())
break
except ValueError:
print("I asked a number, not else...")
if opt == 0:
print("Thanks for playing!\nI hope you enjoyd :)")
break
elif opt == 1:
print(player)
elif opt == 2:
Pokemon.print_pokekodex()
elif opt == 3:
player.print_pokemons_objects_name()
elif opt == 4:
City.print_available_cities_with_pokemon()
elif opt == 5:
player.go_to_sleep()
elif opt == 6:
available_cities = [bp, kv, hb, db]
counter = 0
print("Available cities:\n"+"-"*18)
for element in City.available_pokemon_object:
print("-", element.name, "[{}]".format(counter))
counter += 1
while True:
try:
answer = int(input("Give me the target city number!\n"))
break