nim 8. 异常处理

基本的异常处理 try: let d = newSeq[int]() echo "value: ", d[2] except: let e = getCurrentException() echo "异常对象: ",repr(e), " 异常信息: ", getCurrentExceptionMsg
posted @ 2022-09-02 08:51  乁卬杨  阅读(36)  评论(0编辑  收藏  举报