学习笔记(18):Python 面试100讲(基于Python3.x)-del和pop在删除列表元素上有什么区别...

立即学习:https://edu.csdn.net/course/play/26755/340129?utm_source=blogtoedu

del和pop

del a[a]  a.pop() del根据索引删除列表元素无返回值,pop删除并返回该元素

发布了26 篇原创文章 · 获赞 0 · 访问量 114

猜你喜欢

转载自blog.csdn.net/wuchuang19/article/details/104232597