다음과 같이 조건에 따라 함수를 다르게 정의할 수 있다.>>> def test(x,y): if x == 1: def check(y): pri...
다음과 같이 x를 받아 print만 하는 함수가 있다.>>> def test(x): print x 이 함수를 실행해보자.>>> test('no return')no return그렇다면, 다음과 같이 code를 짜면 어떻게 될까?>>> a = t...
1
최근 덧글