How to get the only key-value pair in a map?

后端 未结 0 2002
北海茫月
北海茫月 2021-02-02 01:59

I have a map that occasionally has only one key. When that is the case, I need to get both the key and the object mapped to it and do some processing with it. The function that

相关标签:
回答
  • 消灭零回复
提交回复
热议问题