Login achieved using the json

Log function to achieve

  • Read the user names and passwords from a file
  • Allow multiple input is entered incorrectly
  • If you enter more than three times the locked user error

Ideas:

 

1. The user name and password into json file in the form of key-value pairs

2. to achieve multiple input through the while loop

3. The determination is performed via the input is correct if-elif-else

4. Define a count variable to achieve a locking function account

 

Guess you like

Origin www.cnblogs.com/zwf2019/p/11093386.html