Pycharm不会让我测试我的代码

时间:2017-03-13 04:21:37

标签: python testing pycharm limits

用于测试代码的绿色播放按钮显示为灰色。之后,我在删除旧项目后创建了一个新项目。最初,它一直在尝试搜索旧项目后长时间删除的文件,并将代码放入新项目中。因此它不断出错。

稍后,绿色播放和调试按钮完全变灰并且无法点击。

这是代码。现在这只是一块骨头;我正在为简单的自上而下的游戏设计做的在线课程的一部分,因为我还是一个菜鸟。

def Initialize():
    # Initialize game
    print("Initializing")


def ContinueGame():
    # Return false if game should end, true if game is not over
    print("Checking to see if we should continue")
    return True


def DoRound():
    # Perform one round of the game
    print("Doing one round")


# Initialize game
Initialize()

# while game not over
while ContinueGame():
    # Do a round of the game
    DoRound()

如您所见,它没有提供从旧文件调用的说明。

我正在使用pycharm社区版2016.3

0 个答案:

没有答案
相关问题