라이브러리 없이 복사하기

DH·2022년 4월 12일
0

coding test

목록 보기
6/10

temp=str[:] => str 내용을 바꿔도 temp은 바뀌지 않는다. (deepcopy?)
temp=str => str 내용을 바꾸면 temp까지 바뀐다.

temp를 바꿔도 str은 바뀌지않는다.

profile
Person

0개의 댓글