You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
두 개의 변수를 한꺼번에 대입하는 방법을 같은 값을 대입하더라도 a, b = -1, -1 방식으로 하는 방법밖에 몰랐는데 알고보니 a=b=1도 된다는 것을 이 글을 통해 발견 ! 그러나 이와 같이 대입할 때에 a = b = []와 같이 mutable 객체를 다룰 때는 주의하라고 한다. mutable vs immutable에 대해 대충 레퍼런스 차이?라고만 기억하고 있는데 더 자세히 알아둬야 하는 개념인 것 같아 이후 공부해보기로 !