Guest User

Untitled

a guest
Apr 27th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. {"Alphabet":{"A":{"a1_0":{0:100,1:120}},"a1_1":{0:150,1:130},"a1_2":{0:140,1:110}},{"B":{"b1_0":{0:2,1:3}},{"b1_1":{0:"4",1:"5"}}},・・・・{"Z":{"z1_0":{0:"90",1:"80"}},{"z1_1":{0:"40",1:"50"}}}}
  2.  
  3. for key,value in dictionary.items():
  4. x = key
  5. for ky,vl in value.items():
  6. y = ky
  7. for k, v in vl.items():
  8. z =k+ v
  9.  
  10. s = "n".join([x, y, z])
  11. f = open('data.txt', 'w')
  12. f.write(s)
  13. f.close()
Add Comment
Please, Sign In to add comment