🌈 搜索
📅  最后修改于: 2022-03-11 14:45:26.340000             🧑  作者: Mango
from more_itertools import peekable p = peekable(['a', 'b']) p.peek() # 'a' next(p) # 'a' p.peek() # 'b'