... list list.clear() print('List:', list). 輸出. List: []. 注意:如果您使用的是Python 2或Python 3.2及更低版本,則不能使用 clear() 方法。您可以改用del運算符 ...
確定! 回上一頁