LoginSignup
0
0

More than 1 year has passed since last update.

python 連想配列 for文

Posted at

連想配列は通常for文で回すとkeyが出力される。

正しい記載はこう。

#keyを出力したい場合。
for key in deictionarlyList.keys():
    print(key)

#valueを出力したい場合。
for value in dectionarlyList.values():
    print(value)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0