파이썬 lambda TypeError 왜 나는지 모르겠어요..
조회수 1207회
files = input().split()
print(list(lambda a : '{0:0>7}'.format(a) if len(a) == 5 else '{0:0>8}'.format(a), files))
4.png를 입력했을 때 '004.png'로 출력하고 싶은데 line2에서 자꾸 아래 에러가 떠요 구글링해봐도 뭐가 문제인지 몰그ㅔㅆ어요ㅠㅠㅠㅠㅠㅠㅠㅠ
예외가 발생했습니다. TypeError list expected at most 1 arguments, got 2
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력