감동, 마음이 움직이는 것
[Python] deep copy & range of variable 본문
Tips (Utility, Computer Language, and etc.)
[Python] deep copy & range of variable
Struggler J. 2017. 7. 18. 19:16[1] deep copy
https://stackoverflow.com/questions/17873384/deep-copy-a-list-in-python
import copy
>>> x=[1,0,0]
>>>x0 = copy.deepcopy(x)
>>>x[0] =0
>>>x
>>>[0,0,0]
>>>x0
>>>[1,0,0]
[2] Range of float
>>> import sys
>>> sys.float_info
>>> sys.float_info[0]
>>> 1.7976931348623157e+308
'Tips (Utility, Computer Language, and etc.)' 카테고리의 다른 글
[Python] Basic (0) | 2017.08.08 |
---|---|
[To do] Quene (0) | 2017.07.26 |
[git] 만들어진 git directory 연결해서 받아오기 --- git init, git clone (0) | 2017.07.17 |
[Linux/perl or sed] 여러파일안의 문구를 한 번에 바꾸기 (0) | 2017.07.10 |
[c++] debugging using Valgrind (0) | 2017.07.09 |