摘要: ###异常处理 eg1: 1 try: 2 inp = input('输入序号:') 3 num = int(inp) 4 except Exception as e: 5 print(e) 6 num = 1 7 8 print(num) eg2: 1 try: 2 li = [11,22] 3 阅读全文
posted @ 2018-01-22 16:40 Alos403 阅读(207) 评论(0) 推荐(0) 编辑