例如:你的项目需要你写一个函数,把两个数相加,并返回和。
For example, let's say your project requires you to write a function that adds two Numbers, and returns the sum of these Numbers.
对于我们创建的工厂,我们不关心这些描述,工厂将负责返回和维护此列表。
For the factory, these descriptions are out of scope; it is only the responsibility of the factory to return and maintain this list.
php 脚本返回和原来相同的 XML 格式,因此不需要修改 XML 解析的代码。
The search.php script returns the same XML format as the original, so the code that does the XML parsing doesn't need to change.
The only thing that you have to put in the function prototype, ; again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。
And then when I get to the very end, I'm going to return the bigger of with i and without i.
然后当我到最后时,我会返回包括i物品,和不包括i物品的,总价值中的较大值。
Two, the arguments or parameters, and three, is the return value.
第二个,参数和参量,还有三,是那个返回值。
应用推荐