We just go through the list top to bottom, left to right, and cross names off as we go.
我们会从上到下,从左到右看那个问题清单,如果解决了就把名字擦掉。
The seconds cross out, the kilograms cross out, one of the meters crosses out from the top, so we're left with an answer in meters.
秒消掉了,千克消掉了,单位米和上面的一起约去了,所以我们得到的答案只剩下米。
But very soon will you find that if you're writing programs with lots and lots of functions, and some might call these, and these might call these, you can come up very soon with scenarios where you can not order them top to bottom, because everything is comingled, and there's a lot of cross talk among all of your functions.
但是不久后你们会发现你们写的程序中,有很多很多的函数,有的函数调用这些函数,这些函数又调用另外的函数,你不能用脚本,把它们从上到下排序,因为所有函数相互混合,在你的函数中也有很多交叉。
应用推荐