Python 3 教程
Python3 實(shí)例
定義一個(gè)列表,并清空列表,可以使用 clear() 方法實(shí)現(xiàn)。
以上實(shí)例輸出結(jié)果為:
清空前: [6, 0, 4, 1] 清空后: []