if __name__ == '__main__':
n = int(input())
r = []
for i in range(n):
m = input()
digit = False
alpha = False
luan = False
if len(m) < 6:
r.append("Your password is tai duan le.")
else:
for s in m:
if s.isdigit():
digit = True
elif s.isalpha():
alpha = True
elif s != ".":
luan = True
break
if luan:
r.append("Your password is tai luan le.")
elif digit and alpha:
r.append("Your password is wan mei.")
elif not digit:
r.append("Your password needs shu zi.")
else:
r.append("Your password needs zi mu.")
for i in range(n):
print(r[i])
PAT (Basic Level) Practice (中文)1081 检查密码
最新推荐文章于 2024-09-03 17:22:28 发布