📌  相关文章
📜  python 删除列表的最后一个实例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.138000             🧑  作者: Mango

代码示例4
# Remove the last 3 items from a list
x = [1, 2, 3, 4, 5]
for i in range(3): x.pop()