🌈 搜索
📅  最后修改于: 2022-03-11 14:45:05.169000             🧑  作者: Mango
>>> l = [1, 2, 3, 4, 5] >>> n = 3 >>> l[:n] [1, 2, 3]