题解 | #判断列表是否为空#

判断列表是否为空

https://www.nowcoder.com/practice/83602ea86f1e4e6ca42d5ebffff34ca8

my_list = []
print("my_list is empty!" if len(my_list) == 0 else "my_list is not empty!")

全部评论

相关推荐

LZStarV:冲就好了,就算真的是字节也冲,面评脏了大不了等三四个月就淡了,而且等到那个时候实力进步了选择还多,何必拘泥于字节
点赞 评论 收藏
分享
牛客96763241...:杭电✌️也是打完招呼,没人回吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务