What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
You have to pass it as input to another function, as you'll see as possible in problem's Set One specification, but it's ultimately up to you.
你需要把它传给另一个函数当入参,就像你们将,在习题集1中可能看到的,但它最终取决于你。
It means anybody using that little function get float doesn't have to worry about what's inside of it. So for example, I decide I want to change the message I print out, I don't have to change the function, I just pass in a different parameter.
这代表着用这个方法去获得浮点数,的任何人都不用担心具体的实现了,例如,如果我想改变下,显示的信息的话,我不必去改变方法,我传个不同的参数就可以了。
f Well, call toupper pass this lowercase F F to this function called toupper it's going to return capital F and so what do I assign to s2 bracket zero?
调用toupper函数,传递这个小写,然后返回的是大写的,那么我对s2【0】赋值多少?
If you pass a function in C, a value that it's not expecting bad things happen and bad things generally reduce to segfault.
如果你在C中传递一个函数,一个没有预料的情况将会出现,这个情况通常是段错误。
Well, I call class just like a function, and you can see that below.
也就是pass了,在python中它的意思就是说。
应用推荐