lambda 함수 사용

>>> g = lambda x: 1 if x > 30 else 0

1

---함수 명 =lambda(파라미터): 참값 (if문) else 0 

댓글

Designed by JB FACTORY