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