The World Wide Web, restored to 800 pixels of glory.
GeezerVison is showing www.runoob.com — Python 清空列表 | 菜鸟教程
Python3 实例
定义一个列表,并清空列表,可以使用 clear() 方法实现。
以上实例输出结果为:
清空前: [6, 0, 4, 1] 清空后: []
取消