Python基礎教程第三版學習筆記

1)異常處理:html ry: x = int(input('Enter the first number: ')) y = int(input('Enter the second number: ')) print(x / y) except (ZeroDivisionError, TypeError, NameError) as e: print(e)code #還可使用else語句 whil
相關文章
相關標籤/搜索