You don't need this hack of just, like, manually adding a decimal point just to fix that problem.
你不需要这样来操作,比如,手动地加入小数点来修正这个错误。
hey'd rather single step it through using Idol or something, than just read it and try and figure things out. The most important thing to remember when you're doing all of this is to be systematic.
比起阅读代码发现错误来他们,宁愿用内置的操作层,或者其他工具一步完成,你要记住的最重要的事情,就是要系统化的去做调试。
So hopefully there is indeed a way to fix this, but it looks as though the division operator, the single slash is division but -- and here's a curiosity about many programming languages -- because 17 is an integer and because 13 is an integer, why do I say that?
我的确希望有一个方法来修正这个错误,但是看起来,好像那个除法操作,那个斜杠是除法,但是--对于很多编程语言来说,是挺奇怪的--因为17是一个整数,13也是一个整数,为什么我这样说?
I spotted an error here, I could have spotted it by running it on different test sets, and using prints things, another way of doing it, but this idea of at least simulating it on simple examples lets you check a couple of important questions.
操作么?我在这里发现了一个错误,我也可以通过运行不同的测试集,或者运用print声明来发现这个错误,但是至少应该用简单的例子来手工模拟下,代码的思想可以让你,对一些很重要的问题进行检验。
应用推荐