ID of var b : 140312590563728
b : [1. 1. 1. 1.]
testFunc1(b)
----------------
testFunc1
ID of input param a in testFunc1 : 140312590563728
a : [1. 1. 1. 1.]
c = a
ID of var c in testFunc1 : 140312590563728
c[0] = 2
c : [2. 1. 1. 1.]
a : [2. 1. 1. 1.]
b after testFunc1 : [2. 1. 1. 1.]
b[0] = 1
testFunc2(b)
----------------
testFunc2
ID of input param a in testFunc2 : 140312590563728
a : [1. 1. 1. 1.]
c = a * 2
ID of var c in testFunc2 : 140312590563728
c : [2. 2. 2. 2.]
a : [1. 1. 1. 1.]
testFunc3(b)
----------------
testFunc3
ID of input param a in testFunc3 : 140312590563728
a : [1. 1. 1. 1.]
a = a * 2
ID of var a after multifunction in testFunc3 : 140312590971984
a : [2. 2. 2. 2.]
b after testFunc3 : [1. 1. 1. 1.]
b[:] = 1
testFunc4(b)
----------------
testFunc4
ID of input param a in testFunc4 : 140312590563728
a : [1. 1. 1. 1.]
a *= 2
ID of var a after multifunction in testFunc4 : 140312590563728
a : [2. 2. 2. 2.]
b after testFunc4 : [2. 2. 2. 2.]
b[:] = 1
testFunc5(b)
----------------
testFunc5
ID of input param a in testFunc4 : 140312590563728
a : [1. 1. 1. 1.]
a[:] = a[:] * 2
ID of var a after multifunction in testFunc5 : 140312590563728
a : [2. 2. 2. 2.]
b after testFunc5 : [2. 2. 2. 2.]
ㅇㅇ
- dc official App
호 뭐지
뭘로 찍어본거임
코드 올리기 귀찮아서 결과만 올렸음 환경은 온라인 파이썬 컴파일러 - dc App