例题2.21

DENWOSHUABAZONGSHI / 2024-11-11 / 原文

例题2.21代码

import random
x = random.randint(1e5, 1e8)
y = list(map(int, str(x)))
z = list(map(lambda x, y: x%2 == 1 and y%2 == 0, [1, 3, 2, 4, 1], [3, 2,1, 2]))
print(x); print(y); print(z)