一覧.キーの一覧(keys)
Python
py
dict1.keys()
Swift
swift
dict1.keys
PHP
php
array_keys($dict1)
Ruby
rb
dict1.keys
PowerShell
powershell
$dict1.Keys
C++
cpp
for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) { keys.push_back(it->first); }
cpp
map<int, int> m;
vector<int> keys;
for(map<int,int>::iterator it = m.begin(); it != m.end(); ++it) {
keys.push_back(it->first);
}