나는 문자열 목록과 사전에 ValueError : 너무 많은 값이 파이썬 사전에 압축을 풀
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
을 허용하는 기능을 가지고 있지만,
ValueError: too many values to unpack
내 매개 변수
입니다 오류를 반환superDynaParams('Mark Paul',
'programming','arts','japanese','literature','music',
father='papa',mother='mama',sister='neechan',brother='niichan')
의 중복 가능성 [파이썬에 ValueError : 너무 많은 값이 압축을 풀] (http://stackoverflow.com/questions/7053551/python-valueerror-too-many-values-to-unpack) –