ejdic = {"apple": "りんご", "baby": "赤ん坊", "cask": "樽"} for k in ejdic.keys(): print(k) print(list(ejdic.keys())) # プログラム9-24(メソッドkeys)