📜  如何在一行中打印多行python代码示例

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

代码示例4
for i in range(0,len(y)):
    count=1
    flag=True
    for j in range(i+1,len(y)):
        if y[i] in x:
            continue
        else:
            if y[i]==y[j]:
                count+=1
                flag=False
            
    
    if flag==False:
        print("frequency of {} is {}".format(y[i],count))
    x.append(y[i])