如果您的代码遇到一个不知道如何处理的条件(例如参数不正确),它将引发相应的异常。
def even_the_odds(odds): if odds % 2 != 1: raise ValueError("Did not get an odd number") return odds + 1
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分