37 字
约 7 秒
5
code7-3-raise
2026-09-26
无标签
try:
pwd = input('请输入你的密码')
if len(pwd)<8:
raise Exception('密码长度不够,请输入一个8位以上的密码')
except Exception as e:
print(e)
评论
0 条
还没有评论,先写一条吧。
try:
pwd = input('请输入你的密码')
if len(pwd)<8:
raise Exception('密码长度不够,请输入一个8位以上的密码')
except Exception as e:
print(e)