Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは私のJSONです
{"sites":[{"site_id":1234,..,..}, {"site_id":5678,..,..}]}
私はそれを使用してループしようとしています:
for site_id in account['sites']['site_id']: print(site_id)
どちらが得られますか:
list indices must be integers, not str