代码示例:(标识:python_list_pop)
python_list_pop.py
thislist = ["apple", "banana", "cherry"]
thislist.pop()
print(thislist)
运行结果: