当实施TFP时,只添加了足够让测试通过的代码。
When practicing TFP, you add only enough code to make your tests pass.
柱子顶部未经修改,里面只添加了一张海报。
The top of the advertising column has not been modified. Nothing was added but the poster.
本文中,为简单起见,在每对标记中只添加必需的信息。
To keep it simple in this article, you add only necessary information in each tag.
It took me seven comparisons, because I can take advantage of the fact I know I only ever have to look at the first element of each sub-list. Those are the only things I need to compare, and when I run out of one list, I just add the rest of the list in.
进行了7次对比,因为我可以利用我知道的优势:,每次只需要比较每个子列表的第一个元素,那才是我需要进行对比的内容,当一个列表的元素处理完了,只需要将另一个列表剩下的元素直接添加进去。
If you're taking only one derivative you can add a constant.
如果只进行一次求导,你可以添加一个常数项
应用推荐