當前位置:
首頁 >
python登录系统简易框架
發布時間:2025/6/15
33
豆豆
生活随笔
收集整理的這篇文章主要介紹了
python登录系统简易框架
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#!/usr/bin/env python?
#coding:utf8
while True:
? ? user = raw_input("請輸入用戶名:")
? ? if user == ('isaac'):
? ? ? ? password = raw_input('請輸入您的密碼:')
? ? ? ? while True:
? ? ? ? ? ? if password != ('123'):
? ? ? ? ? ? ? ? print "密碼錯誤,請重試"
? ? ? ? ? ? ? ? password = raw_input('請輸入您的密碼:')
? ? ? ? ? ? if password == ('123'):
? ? ? ? ? ? ? ? print "Hello %s" % user
? ? ? ? ? ? ? ? break
? ? ? ? break
? ? else:
? ? ? ? print "%s用戶不存在!" % user
轉載于:https://blog.51cto.com/isaacos/1854577
總結
以上是生活随笔為你收集整理的python登录系统简易框架的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 模拟简单计算器及比较大小
- 下一篇: Python 学习笔记 - socket