- Hands-On Penetration Testing with Python
- Furqan Khan
- 68字
- 2021-07-02 14:13:50
Removing elements from lists
We can use the del command to delete either an element from the list or the whole list. The del command does not return anything. We can also use the pop method to remove elements from the list. The pop method takes the index of the element that we wish to remove as an argument:

The entire list structure can be deleted as follows:

推薦閱讀
- DB2 V9權(quán)威指南
- Python程序設(shè)計教程(第2版)
- Django+Vue.js商城項目實戰(zhàn)
- AngularJS Web Application Development Blueprints
- Mastering Articulate Storyline
- 劍指大數(shù)據(jù):企業(yè)級數(shù)據(jù)倉庫項目實戰(zhàn)(在線教育版)
- Unity&VR游戲美術(shù)設(shè)計實戰(zhàn)
- QGIS Python Programming Cookbook(Second Edition)
- C語言程序設(shè)計與應(yīng)用(第2版)
- uni-app跨平臺開發(fā)與應(yīng)用從入門到實踐
- Android Studio Cookbook
- Python 3 Object:oriented Programming(Second Edition)
- Learning Python Data Visualization
- Tableau Dashboard Cookbook
- After Effects CC案例設(shè)計與經(jīng)典插件(視頻教學版)