1. 程式人生 > >python 全站開發 (課) 作業,編寫登陸接口,輸入用戶名,密碼 ,登錄成功顯示歡迎信息,失敗3次鎖定

python 全站開發 (課) 作業,編寫登陸接口,輸入用戶名,密碼 ,登錄成功顯示歡迎信息,失敗3次鎖定

port nbsp utf break python 編寫 for 顯示 use

_ * _ coding: utf -8 _* _

use/bin/evn/python

import getpass

s < 3

username = inpot("username:")

password =getpass.getpass("password:")

  print(username ,password)

-username = "ales"

_password = "sb123"

for i in range(3(

  if -username = "username,and "password = ="password":

  print(huanyingnin"

  break

  elif:

  print(buyaozaishil.sb)

python 全站開發 (課) 作業,編寫登陸接口,輸入用戶名,密碼 ,登錄成功顯示歡迎信息,失敗3次鎖定