我尝试创建一个ai游戏,我怎样才能在' _'之前打印所选对象或功能的名称?例如:
{% partial 'gallery' id=page.galleryId %}
输出必须是这样的 :
players = [random_player, ai_player]
player_number= input('Determine first player Random(0) or AI(1):')
player_number2= input('Determine second player Random (0) or AI (1):')
player_array=[players[int(player_number)], players[int(player_number2)]]
# this is the wrong format I know.
print(' The game begins with {0} vs {1}'.format((player_array[0]), (player_array[1]))