python方法clear

2025-01-05 10:27:49

1、1如图所示,启动PYTHON3.7

python方法clear

3、3输入清空列表命令

python方法clear

5、5观察清空后效果如图所示

python方法clear

7、7对比清空命令与切片赋值语句效果

python方法clear
猜你喜欢