clear定义

# 写法:列表名.clear()
# 定义:一次性删除所有数据
e = ['小明','小丁','小红']
e.clear()
print(e)
posted @ 2023-12-27 08:12  罗科-ROCCO  阅读(4)  评论(0编辑  收藏  举报