Python | キーから値を取得する方法 Python 2018.06.162018.07.18 iPython In [1]: staff = {1: 'test1', 2: 'test2', 3: 'test3'} In [2]: staff[2] Out[2]: 'test2'