我想知道如何在Nim中退出控制台应用程序。
您可以使用系统模块中的退出功能,例如
quit(1) # where 1 is the error code 1.quit() # same as above
要么
"Error message".quit(0) # where 0 is the error code
在nim doc上了解有关详细信息退出功能或速记退出功能的更多信息
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句