Example #1
0
 def setUp(self) -> None:
     self.user = User()
     self.bank = Bank()
     self.address = Address()
Example #2
0
 def setUp(self) -> None:
     self.user1 = User()
     self.user2 = User()
     self.bank = Bank()
Example #3
0
from day16.util.DBUtils import DBUtils
from day16.util.welcome import Welcome
from day16.util.User import User
from day16.util.Address import Address
from day16.util.Bank import Bank
from day16.util.HelpUtils import Utils

DB = DBUtils()
welcome = Welcome()
User = User()
Address = Address()
Bank = Bank()
Utils = Utils()


# 开户方法
def addUser():
    # 随机生成账号
    account = Utils.getRandom()
    User.setUsername(Utils.inputHelp("用户名"))
    User.setPassword(Utils.inputHelp("密码"))
    Address.setCounrry(Utils.inputHelp("国家"))
    Address.setProvince(Utils.inputHelp("省份"))
    Address.setStreet(Utils.inputHelp("街道"))
    Address.setDoor(Utils.inputHelp("门牌号"))
    # username = input("请输入您的姓名:")
    # password = input("请输入您的密码(6个数字):")
    # print("接下来请输入您的地址信息")
    # counrry = input("\t请输入您的国家:")
    # province = input("\t请输入省份:")
    # street = input("\t请输入街道:")