程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Whats wrong with Python

編輯:Python

1. Display a 6 Bit random number ( Verification Code ), And prompt the user to enter the user name 、 Password and just shown 6 Bit verification code ;2. establish user Dictionary keeping 3 Group user and password data , If the user name and password entered by the user are consistent with the preset name and password in the dictionary , And the verification code is also the same as the prompt 6 Bit verification code matches , Then continue the program to enter the initial state of the system main interface ( See below “ System main interface ”->“ The initial state ” part ), For example, the following process : explain : The background is the content output for the program , The answer is entered by the user : Your login verification code is 386597 Please enter a user name :zhangsan Please input a password :123456 Login verification code :386597 Authentication passed , Welcome to login ! If the user name and password entered by the user do not match the information in the dictionary , Or verification code and prompt 6 Bit verification code does not conform to , Login failed , Prompt authentication failed , Exit procedure . For example, the following process : explain : The background is the content output for the program , The answer is entered by the user : Your login verification code is 386597 Please enter a user name :zhangsan Please input a password :123456 Login verification code :123456 Authentication failed ! >>>3. System main interface : Enter the system display system function interface , Function as follows :1. Increase inventory ( Product Name 、 Number )2. Merchandise out of warehouse 3. Display all item information inventory 4. Exit the system. The system consists of 4 Features . Input “1” when , If there are no goods in stock, new goods will be added , If it already exists, the entered inventory will be increased ; Input “2” when , If there is no commodity in stock or the quantity is insufficient, it will be reminded , Otherwise, reduce inventory ; Input “3” when , Display all the items in the inventory and the corresponding inventory , It is required to arrange neatly with tabs ; Input “4” when , Prompt whether to exit , answer “Y” Then exit the program . Criteria :30 branch : Realize the display 6 Bit random number ( Verification Code ) And verify whether the verification code entered by the user is consistent with


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved