def get_data(): arrs = ReadYaml("data_login.yaml").read_yaml() list1 = [] for data in arrs.values(): list1.append((data.get("username"), data.get("password"), data.get("expect_result"), data.get("expect_toast"))) return list1
def get_data(): datas = ReadYaml("data_login.yaml").read_yaml() print(datas) arrs = [] for datat in datas.values(): arrs.append((datat.get("username"), datat.get("password"))) return arrs
def get_data(): # 获取所有数据 datas=ReadYaml("data_login.yaml").read_yaml() # 创建 空列表 arrs = [] # 获取所有的值 并 遍历 for data in datas.values(): arrs.append((data.get("username"),data.get("password"))) # 查看 获取的列表结果 return arrs
def get_data(): list1 = [] for data in ReadYaml("data_login.yaml").read_yaml_data().values(): list1.append( (data.get("username"), data.get("password"), data.get("number"))) return list1
def get_data(type_value): # 定义空列表 arrs = [] if type_value == "add": for data in ReadYaml("address.yaml").read_yaml().get( "add_address").values(): arrs.append( (data.get("name"), data.get("phone"), data.get("province"), data.get("city"), data.get("area"), data.get("address_info"), data.get("code"))) return arrs elif type_value == "update": for data in ReadYaml("address.yaml").read_yaml().get( "update_address").values(): arrs.append( (data.get("name"), data.get("phone"), data.get("province"), data.get("city"), data.get("area"), data.get("address_info"), data.get("code"))) return arrs
def get_data(): datas = ReadYaml('data_login.yaml').read_yaml() arrs = [] for data in datas.values(): arrs.append((data.get("uesrname"), data.get("password"))) return arrs
def get_data(): arrs = [] for data in ReadYaml("data_login_01.yaml").read_yaml().values(): arrs.append((data.get("tel"), data.get("pwd"), data.get("yzm"))) return arrs
def get_data(): arrs = [] for data in ReadYaml("login_data.yaml").read_yaml().values(): arrs.append((data.get("username"), data.get("password"), data.get("expect_result"), data.get("expect_toast"))) return arrs
def get_data(): arrs = [] for data in ReadYaml("al_login_data.yaml").read_yaml().values(): arrs.append((data.get("number"), data.get("password"), data.get("exepect_result"), data.get("expect_tosat"))) return arrs
def get_data(): res = ReadYaml("data_login.yaml").read_yaml() list1 = [] for data in res.values(): list1.append((data.get("username"), data.get("password"), data.get("code"))) return list1