使用型态转换将返回的对象转换成期望的服务接口类型的对象。
Use typecast to convert the returned object to the desired service interface type.
要创建一个新对象(这里是将返回的字符串),首先分配对象,然后初始化对象。
To create a new object (in this case, the string that will be returned), first alloc the object and then initialize it.
这些方法提供了多个备选方案以允许将返回的列表根据排序标准进行排序。
The methods offer multiple alternatives to allow returned lists to be sorted according to a sort criteria.
It is going to give me back a tuple a collection of two things, and so check out the syntax.
它将给我返回一个数组或者系列的一对值,然后检查一下语法。
Same way that I have multiplication or division as a primitive, functions are going to give me, or somebody else who wrote them for me as part of a library, a new primitive that I'm going to be able to use.
我在用乘法或者除法当做原语,这些函数,或者别人写程序库中的函数,将会给我返回一个,我能使用的新原语。
Then if the weight of i is less than the available weight, I can return the value of i.
然后如果i的重量,小于剩下的重量,我将返回i的价值。
应用推荐