📜  python在线编译器——Python代码示例

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

代码示例6
def func3(lst):
    tmpLst = []
    for i in range(len(lst)):
        if lst[i] % 3 == 0:
            tmpLst.append(i//3)
        else:
            tmpLst.append(i)
        return tmpLst