成功解决ValueError: too many values to unpack (expected 2)
解决问题
ValueError: too many values to unpack (expected 2)
解决思路
值错误:要解包的值太多(应为2)
解决方法
将
for a,b in listAndtuple:
改为
for a,b in listAndtuple.items()
哈哈,大功告成!
赞 (0)
ValueError: too many values to unpack (expected 2)
值错误:要解包的值太多(应为2)
将
for a,b in listAndtuple:
改为
for a,b in listAndtuple.items()
哈哈,大功告成!