题解 | #判断列表是否为空#
判断列表是否为空
https://www.nowcoder.com/practice/83602ea86f1e4e6ca42d5ebffff34ca8
my_list = [] print(f'my_list is empty!' if len(my_list) == 0 else 'my_list is not empty!')
判断列表是否为空
https://www.nowcoder.com/practice/83602ea86f1e4e6ca42d5ebffff34ca8
my_list = [] print(f'my_list is empty!' if len(my_list) == 0 else 'my_list is not empty!')
相关推荐