def register(): print('欢迎注册') username = input('请输入你的用户名>>>') pwd = input('请输入你的密码>>>') msg = admin_interface.register_interface(username, pwd) print(msg)
def admin_register(): while True: username = input('请输入用户名>>>').strip() password = input('请输入密码>>>').strip() flag, msg = admin_interface.register_interface(username, password) print(msg) if flag: break
def register(): """ 注册信息 """ username, pwd = common.input_username_pwd() flag, msg = admin_interface.register_interface(username, pwd) if flag: print(msg) else: print(msg)
def admin_register(): while True: username = input('请输入您想注册的账号').strip() password = input('请输入您想注册的密码').strip() re_password = input('请再次输入您想注册的密码').strip() if password == re_password: flag, msg = admin_interface.register_interface(username, password) print(msg) if flag: break else: print('两次密码输入不一致,请重新输入') continue
def admin_register(): while True: print('欢迎来到管理员注册界面') username = input('请输入姓名>>>').strip() pwd = input('请输入密码>>>').strip() flag,msg = admin_interface.register_interface(username, pwd) if flag: print(msg) break else: print(msg) break
def register(): while True: name = input('输入管理员用户名:') if name =='q': break pwd = input('输入管理员密码:') re_pwd = input('确认管理员密码:') if re_pwd == pwd: flag,msg = admin_interface.register_interface(name,pwd) print(msg) if flag: break else: print('两次密码不一样 !')
def register(): print('管理员注册') while True: name = input('请输入用户名(返回请按q):').strip() if name == 'q': break password = input('请输入密码:').strip() conf_password = input('请确认密码:').strip() if password == conf_password: flag, msg = admin_interface.register_interface(name, password) if flag: print(msg) break else: print(msg)
def register(): print("欢迎来到管理员注册界面!".center(30, '*')) while True: name = input("请设置管理员账号:") pwd = input("请设置管理员密码:") re_pwd = input("请再次确认密码:") if pwd == re_pwd: flag, msg = admin_interface.register_interface(name, pwd) if flag: print(msg) break else: print(msg) else: print("两次输入的密码不一致,请重新输入!")
def register(): while True: username = input('请输入用户名:').strip() password = input('请输入密码:').strip() re_password = input('请确认密码:').strip() if password == re_password: flag, msg = admin_interface.register_interface(username, password) if flag: print(msg) break else: print(msg) else: print('两次密码不一致!')
def register(): while True: username = input('姓名,q退出') if username=='q': break pwd = input('密码') pwd1 = input('密码') if pwd == pwd1: flag,msg = admin_interface.register_interface(username,pwd) if flag: print(msg) else: print(msg) else: print('面膜不对')
def register(): while 1: print("===============注册功能执行中") user_name = input("请输入用户名:[温馨提示:输入q退出]") if user_name.lower() == "q": break password1 = input("请输入密码:") password2 = input("请确认密码:") if password1 != password2: print("两次密码不一致") continue flag, msg = admin_interface.register_interface(user_name, password2) print(msg) if flag is True: break
def register(): while True: username = input('请输入注册用户名:').strip() pwd = input('请输入注册密码:').strip() re_pwd = input('请再次输入密码:').strip() if pwd != re_pwd: print('密码不止一次') continue flag, msg = admin_interface.register_interface(username, pwd) if flag: print(msg) admin_auth['username'] = username break print(msg) break
def register(): print(f'{"*"*15}欢迎来到注册功能{"*"*15}') while True: username = input("请输入姓名,q退出>") if username == 'q': break pwd = input('请输入密码>') pwd1 = input('请确认密码>') if pwd == pwd1: flag, msg = admin_interface.register_interface(username, pwd) if flag: print(msg) else: print(msg) else: print('俩次密码不一致')
def register(): while 1: name = input('请输入注册用户名:').strip() pwd = input('请输入注册密码:').strip() re_pwd = input('请核实注册密码:').strip() if pwd != re_pwd: print('两次密码不一致!') continue flag, msg = admin_interface.register_interface(name, pwd) if flag: print(msg) break else: print(msg)
def register(): print('欢迎注册') while True: username = input('请输入用户名>>>').strip() pwd = input('请输入密码>>>').strip() pwd2 = input('请再次输入密码>>>').strip() if pwd == pwd2: flag, msg = admin_interface.register_interface(username, pwd) if flag: print(msg) break else: print(msg) continue else: print('两次输入密码不一致') continue
def register(): while True: # 接受用户输入的username,password username = input('输入你的用户名:').strip() password = input('输入你的密码:').strip() re_password = input('确认你的密码:').strip() # 简单的逻辑判断输入的两次密码是否相等 if password == re_password: # username,password传入逻辑接口层 flag, msg = admin_interface.register_interface(username, password) # 接收到逻辑接口层传来的数据,并赋值给flag和msg if flag: # 注册成功 print(msg) break else: # 注册失败 print(msg) else: print('两次密码输入不一致!')
def admin_register(): '''管理员注册''' while True: user = input('请输入注册的用户名:').strip() passwd = input('请输入注册的密码:').strip() if user == 'q' or passwd == 'q': break conf_passwd = input('请再输入一次密码:').strip() if user is None or passwd is None: print('用户名或密码不能为空!') continue if passwd != conf_passwd: print('两次密码输入不同,请重新输入!') continue obj = admin_interface.register_interface(user, passwd) # 调用接口层处理业务逻辑 if obj: print('注册成功') return else: print('用户已存在,请重新输入')
def register(): ''' # 注册 :return: ''' while True: print('---管理员注册---') user_name = input('输入用户名:').strip() user_pwd = input('输入密码:').strip() pwd_d = input('确认密码:').strip() if not user_pwd == pwd_d: print('密码不一致') continue # 调用注册接口 flag, msg = admin_interface.register_interface(user_name, user_pwd) if flag: print(msg) break else: print(msg) continue
def register(): while True: username = input( 'Supreme Administrator, please input your username:'******'Supreme Administrator, please input your password:'******'Supreme Administrator, please confirm your password:'******'Twice password is not the same, please input again')