不知道哪里错了,求助!
查看原帖
不知道哪里错了,求助!
919607
JasonTesla楼主2023/1/14 11:00

n=input() p=0 f=['h','e','l','l','o'] for i in n: if f[p]==i: p+=1 if p==4: break if p==4: print('YES')
else: print('NO')

2023/1/14 11:00
加载中...