题解 | #2的次方数#
2的次方数
https://www.nowcoder.com/practice/d86587eaa6dd47109933c732e69bb3d2
def square(x): return 2 **x my_list = list(int(x) for x in range(1,11)) for i in list(map(square,my_list)): print(i)
2的次方数
https://www.nowcoder.com/practice/d86587eaa6dd47109933c732e69bb3d2
def square(x): return 2 **x my_list = list(int(x) for x in range(1,11)) for i in list(map(square,my_list)): print(i)
相关推荐