【发布时间】:2021-01-13 02:32:09
【问题描述】:
假设我有一个字符串列表[city01, city01002, state02, state03, city04, statebg, countryqw, countrypo]
如何将它们分组到 dictionary 或 <string, List<Strings>> 中
city - [city01, city04, city01002]
state- [state02, state03, statebg]
country - [countrywq, countrypo]
如果不是代码,谁能帮忙解决或继续?
【问题讨论】:
-
为什么你认为第一组不会是
city0?