示例2:lambda函数调用(且表达式可为简单if语句). result = [] for i in range(10): result.append((lambda x: x * 2 if x % 2 == 0 else x)(i)) ...
確定! 回上一頁