如何从返回字符数的字符串创建字典 我希望像'ddxxx'这样的字符串返回为('d': 2, 'x': 3)。到目前为止我已经尝试过了 result = {} for i in s: if i in s: re ...2024-04-30 已阅读: n次