python numpy问题

2025-02-22 21:58:55
推荐回答(1个)
回答1:

x = ['a', 'b']
y = 'c'
print(list(map(lambda x: x+y, x)))

# y不定义的话可以写成

x = ['a', 'b']
print(list(map(lambda x: x+'c', x)))