Ben bir dize, liste ve bir sözlükValueError: Çok sayıda değerler Python Sözlükte açmak için
def superDynaParams(myname, *likes, **relatives): # *n is a list and **n is dictionary
print '--------------------------'
print 'my name is ' + myname
print 'I like the following'
for like in likes:
print like
print 'and my family are'
for key, role in relatives:
if parents[role] != None:
print key + ' ' + role
kabul eden bir işlevi var ama
ValueError: too many values to unpack
benim parametreleri
olan bir hata döndürürsuperDynaParams('Mark Paul',
'programming','arts','japanese','literature','music',
father='papa',mother='mama',sister='neechan',brother='niichan')
olası yinelenen [Python ValueError: çok fazla değerler açmak için] (http://stackoverflow.com/questions/7053551/python-valueerror-too-many-values-to-unpack) –