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
相关文章
相关标签/搜索