Python3 att list clear:修订历史

本页内容

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2022年8月17日 (星期三)

  • 当前之前 21:052022年8月17日 (三) 21:05Neo 讨论 贡献 826字节 +826 创建页面,内容为“{{DISPLAYTITLE:list.clear()}}14 = Python3 List clear()方法 = Python3 列表 == 描述 == clear() 函数用于清空列表,类似于 '''del a[:]'''。 == 语法 == clear()方法语法: <sample title="" desc="" lang="python" hererun="1"> list.clear() </sample> == 参数 == * 无。 == 返回值 == 该方法没有返回值。 以下实例展示了 clear()函数的使用方法: <sample title="" desc=""…”