回答編集履歴

1

補足追記

2020/10/12 14:14

投稿

toast-uz
toast-uz

スコア3266

test CHANGED
@@ -1 +1,7 @@
1
1
  c++のpair、mapに相当するのは、Pythonではそれぞれ、タプル、辞書、と呼びます。
2
+
3
+
4
+
5
+ 参考 [【Python】 辞書(dict)の使い方の基本](https://hibiki-press.tech/python/dict/1136)
6
+
7
+ 辞書キーにタプルを使う、質問者様の状況にあった例示がされています。