0
点赞
收藏
分享

微信扫一扫

python list 清空列表的数据 clear方法

li = [1, 2, 3, 4]
print(li)

# 清空
li.clear()

print(li)

举报

相关推荐

0 条评论