📜  调试器 python 代码示例

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

代码示例2
t=int(input())
while(t!=0):
  s=input()
  v='aeiou'
  flag=0
  for i in range(len(s)):
    if s[i] not in v:
      if s[i+1] in v:
        flag+=1
      else:
        print('NO')
        break
    else:
       #if s[i] in v:
         flag+=1
    if flag == len(s):
        print('YES')
  t=t-1