有时会将诊断信息打印到屏幕上,帮助调试。
There are also a number of points where diagnostic information is printed to the screen to help in debugging.
args “函数负责确保我们接收到正确数量的命令行自变量,它还负责打印有帮助的用法信息。”
The "args" function takes care of making sure that we receive the correct number of command-line arguments, and also handles printing helpful usage information.
赋值给faul t属性的trace方法会把给定的信息打印到控制台,从而帮助您调试任何可能发生的问题。
The trace method assigned to the fault attribute prints the given message out to the console, which helps you debug any issues that might occur.
应用推荐