Python3 List clear()方法Python3 列表描述clear() 函数用于清空列表,类似于del a[:]。 语法clear()方法语法: list.clear() 参数无。 返回值该方法没有返回值。
確定! 回上一頁