2012-11-14 11 views
-1

가능한 중복 :
whats another way to write python3 zippython3

무슨 나는이 코드에 소개 된이 일을 작성하는 더 좋은 방법하지만 난 그들에게 다음과 같은 방법을보고하는 데 사용하고 있지 않다 :

(alla,allc,) = (set(s) for s in zip(*animaldictionary.keys())) 
당신이 쓸 수있는 방법을 다른 사람이
print('\n'.join(['\t'.join((c,str(sum(animaldictionary.get(ac,0) 
for a in alla 
    for ac in ((a,c,),))//12))) 
      for c in sorted(allc)])) 
+3

이되고 이전에 [여기] (HTTP 요청 정확히 같은 질문 :/지금은 다음과 같은 체크 아웃 할 것이다 /stackoverflow.com/questions/13371279/whats-another-way-to-write-python3-zip) (그리고 나는 큰 길이로 대답했다). 다시 물어볼 필요가 없습니다! – Blckknght

답변