撇号语法错误无效

时间:2015-02-03 23:50:09

标签: python-3.x syntax-error

我今天一定非常关注我的游戏,因为我的语法错误非常简单。

def hours_and_minutes_str(hours, minutes):
    """returns a string that represents the time span, including units

    number, number -> str"""
    return str(hours ' hours'  , minutes , " minutes")

感谢任何帮助。

1 个答案:

答案 0 :(得分:2)

缺少逗号

return str(hours, ' hours'  , minutes , " minutes")
相关问题