python lambda例子

[root@master pyflink]# cat a5.py 
dict1={'bus_seq': '10402020230515094322018855', 'message': 'ES047 625978 11111111111111111', 'index_name': 'flink-test2023-06-08'}
f=(lambda log: log['bus_seq'])
print(f(dict1))
[root@master pyflink]# python a5.py 
10402020230515094322018855

你可能感兴趣的:(Flink实时计算,flink)