only formatting hopefully
This commit is contained in:
parent
025c87216d
commit
8ad5f1964e
9 changed files with 241 additions and 198 deletions
|
|
@ -4,6 +4,5 @@ with open("nice.json", "r", encoding="utf-8") as f:
|
|||
data = json.load(f)
|
||||
|
||||
for i in data["data"]:
|
||||
print ("%-32s id: %s" % (i["attributes"]["name"], i["id"]))
|
||||
print("%-32s id: %s" % (i["attributes"]["name"], i["id"]))
|
||||
print(type(data)) # usually <class 'dict'>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue