代码没问题,为何抱错!!

Python:AttributeError: 'str' object has no attribute 'X'错误

img

print(key, d[key])
是逗号

【相关推荐】




如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^