By putting it in a function bug if I find a bug and I change my program I can just run the function again.
把我输入的值放到一个函数里,如果以后我在程序中发现了一个,并对程序进行更改的话,我可以直接。
I've had graduate students come to me and say I found a bug in my program.
你该感到自豪么?经常有毕业生,来找到我并告诉我。
The beauty of this is, it keeps me from getting lazy, and not only testing my program and the thing that found the bug, but in all the things that used to work.
运行函数而不用再输入了,这其中的,美妙之处在于,它让我变的勤快了点,并不是仅仅的去测试程序发现bug方面,同样适用于那些正常工作的模块。
And the bug was in my thinking, I did not look for all of the tests.
当然我已经知道这个bug了,就没去做所有的测试。
应用推荐