我去了JSON格式化程序,对JSON中的部分进行格式化。这是我唯一使用过的东西。
list_of_things = world_bank_data [1]
country = list_of_things[0]['name']
capital = list_of_things[0]['capitalCity']
print(list_of_things[0])
print(f'The capital of {country} is {capital}')
我希望创建一个excel和word文件,并显示每个国家/地区的名称及其首都的列表。
我被分配了一个硬件作业,我需要编写一个Python程序,该程序将列出每个国家的名称及其使用excel和word的首都。有人告诉我从...