我有4份意向书如下:
APIs = {
"ApiA": "api1.abc.com",
"ApiB": "api2.abc.com",
"ApiC": "api3.abc.com",
"ApiD": "api4.abc.com"
}
My code look like this
def create_table(json):
table = []
for data in json:
name = data.get("name", "")
table.append(
[
name,
get_nam(name),
data.get("Functn1", ""),
data.get("Functn2", ""),
data.get("get_api", ""),
def get_api(i):
get_name = APIs.get(i)
return(get_name)
assync def main():
for instance in APIs.keys():
#some other code related to user/passwrd
async with httpx.AsyncClient(
verify=False,
data = await Functn4(instance, async_session)
df = create_table(data)
print(df);
以上 我在一张表格中从复印件中获得数据:
Column1 Column2 Column3 Column4
Row1 Row2 Row3
Row11 Row12 Row13
Row21 Row22 Row23
Row31 Row32 Row33
现在我想增加第4栏的关键内容,该栏将数据从该栏下载。 我们应该这样做:
Column1 Column2 Column3 Column4
Row1 Row2 Row3 ApiA
Row11 Row12 Row13 ApiB
Row21 Row22 Row23 ApiC
Row31 Row32 Row33 ApiD
请帮助
我正在从所有复印件中获取数据,但想知道数据来自哪一个复印机。