作业程序运行奇怪bug
s =input('输入密码;')i =s
if s.isalnum() or len(s) <= 8:
print('弱no,write again:',end='')
if len(s) > 8 and not s.isalnum() and ('!' in s or '@' in s or '$' in s) and not i.isalpha():
print('中,write')
if len(s)>16 and not s.isalnum() and ('!' in s or '@' in s or '$' in s) and i.isalpha():
print('强', end ='')
当输入sssssss66644$$$时没有数据反馈
另外,怎么发图片的?
>>>
====== RESTART: C:/Users/lyl/AppData/Local/Programs/Python/Python39/14.py ======
输入密码;sssssss66644$$$
>>>
====== RESTART: C:/Users/lyl/AppData/Local/Programs/Python/Python39/14.py ======
输入密码;ssssssssssssssssss66644$$$
强
>>>
====== RESTART: C:/Users/lyl/AppData/Local/Programs/Python/Python39/14.py ======
输入密码;sssssss66644$$$
>>> 三个条件都不满足不就没反馈了 逃兵 发表于 2021-8-12 14:49
三个条件都不满足不就没反馈了
为什么三个条件都不满足? 逃兵 发表于 2021-8-12 14:49
三个条件都不满足不就没反馈了
哦哦,我大意了
页:
[1]