Код: Выделить всё
Map myMap = new HashMap();
myMap.put("1", "one");
myMap.put("2", "two");
< /code>
Dictionary Python: < /p>
myDict = dict()
myDict['1'] = 'one'
myDict['2'] = 'two'
Подробнее здесь: https://stackoverflow.com/questions/658 ... dictionary
Мобильная версия