ICode9

精准搜索请尝试: 精确搜索
  • nim 8. 异常处理2022-09-02 09:03:20

    基本的异常处理 try: let d = newSeq[int]() echo "value: ", d[2] except: let e = getCurrentException() echo "异常对象: ",repr(e), " 异常信息: ", getCurrentExceptionMsg() echo "另一种获取异常信息的方法: ", e.msg finally: echo "

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有