Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎如果您想获取映射的键,则需要它们;否则,给我整个映射(由一组键值对组成)。这有历史原因吗?
查看此线程以讨论此行为背后的原因(包括 Guido 喜欢它,并且不太可能改变)。