Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在特定情况下,像这样
f(x) { return x+5; } g(x, y) { return 2*x + y; } main() { return f(g(1, 2)); }
main函数返回值的lambda表达式是什么?
在蟒蛇中:
lambda x, y: (2*x + y) + 5
如果使用 1、2 调用,则返回 9。