try : raise ValueError except ValueError: print("ValueError Exception!") You wouldn't ever actually create code that looks like this, but it shows you how ...
確定! 回上一頁