map 通过值找键 count find 通过键找值 通过值找键 count if (ans.count(key1)) //查键 cout << ans[key1] << endl; else cout << "what?" << endl; count():如果找到则为真 fi