Python:期望缩进块错误

时间:2015-11-10 19:18:38

标签: python

当我运行我的二十一点游戏程序时,python空闲3.4.2出现了一条错误消息,"期望一个缩进的块"。

def end(player):
    if player == 1:
        print('You win, well done')
    elif player == 0:
        print('Computer won, game over')
    print("Computer's cards:")
    deal(computer_suit1,computer_card1)
    deal(computer_suit2,computer_card2)
    startup()

0 个答案:

没有答案