← 문제 목록
초급
Python
30P
가변 기본값 함정
다음 코드에서 f()를 두 번 호출하면?
PYTHON
def f(lst=[]):
lst.append(1)
return lst
print(f())
print(f())
0명 풀이 · 정답률 0%