import re
while True:
pw = input('请输入口令:')
if pw == 'q':
break
elif re.match(r'^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,}$',pw):
print('强口令')
else:
print('若口令')
import re
while True:
pw = input('请输入口令:')
if pw == 'q':
break
elif re.match(r'^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,}$',pw):
print('强口令')
else:
print('若口令')