在清单10中,找到了文件emptyfile,所以test返回0;但是没有找到文件badfilename,所以返回1。
In Listing 10, the file emptyfile was found, so test returned 0; the file badfilename was not found, so 1 was returned.
So there's a return branch on every possible path through the code. And that's valuable, it's something you want to think about as your right your own.
所以代码中每条可能的路径,都会有一个返回值分支,这是非常有价值的,当你自己写程序的时候也应该考虑这件事。
So the first thing it does, price=0 is it says, if self dot price is 0, I'm just going to return.
所以它做的第一件事就是,如果self。,我就返回。
So now let me actually reverse this and go back to the beginning.
所以现在让我们真正倒退,返回到开头。
应用推荐