📜  python 获取迭代器的最后一个元素 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:31.451000             🧑  作者: Mango
代码示例1
*_, last = iterator # for a better understanding check PEP 448
print(last)