Fishc_密码验证程序
生活随笔
收集整理的這篇文章主要介紹了
Fishc_密码验证程序
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
設計密碼驗證程序,三次機會,如果包含*號的話不計算在內。
count =3
password = 'OstrovskyWzp'
while count:temp = input("please input password:")if password == temp:print("right")break;elif '*' in temp:print("not * in password,you have ",count,"times!",end = ' ')continue;else:print("wrong password!you have",count-1,"times!",end= ' ')count-=1
總結
以上是生活随笔為你收集整理的Fishc_密码验证程序的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java房产源码_基于jsp的房屋交易管
- 下一篇: 58到家MySQL军规升级版