📜  如何在python代码示例中获取列表中的周索引

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

代码示例1
days = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
for index,day in enumerate(days):
    if index >= 0: index += 1
    print(index, day)