例题2.21

例题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)


posted @ 2024-10-22 21:48  等我刷把宗师  阅读(3)  评论(0编辑  收藏  举报