Python 3 - ValueError: not enough values to unpack (expected 3, got 2)

前端 未结 5 2112
野的像风
野的像风 2021-01-04 14:04

I have a problem with my Python 3 program. I use Mac OS X. This code is running properly.

# -*- coding: utf-8 -*-
#! python3
# sendDuesReminders.py - Sends e         


        
5条回答
  •  醉酒成梦
    2021-01-04 15:02

    Since unpaidMembers is a dictionary it always returns two values when called with .items() - (key, value). You may want to keep your data as a list of tuples [(name, email, lastname), (name, email, lastname)..].

提交回复
热议问题