티스토리 뷰
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
-. 주소를 복사
>>> a = [1,2,3]
>>> b = a
>>> id(a),id(b),id(a) == id(b)
(35883848, 35883848, True)
-. 값을 복사
>>> a = [1,2,3]
>>> b = a[:]
>>> id(a),id(b),id(a) == id(b)
(36516368, 36517128, False)
'Python' 카테고리의 다른 글
Python, 함수_인수 전달 (0) | 2016.04.21 |
---|---|
Python, 함수 (0) | 2016.04.21 |
Python, 부울 (0) | 2016.04.21 |
Python, 사전(Dictionary) (0) | 2016.04.21 |
Python, list(), set(), tuple()의 형변환, in (0) | 2016.04.19 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- onetomany
- tkinter command & bind [명령어묶기와 사건묶기] Python
- apache
- 파이썬
- borderwidth
- Linux
- command
- FetchType
- highlightbackground
- Module
- ManyToOne
- JPA
- Excel
- activeforeground
- 폼
- vba
- Python
- checkbutton
- disabledforeground
- activebackground
- fetch join
- Composite Key
- Private
- 리눅스
- IdClass
- tkinter
- Java
- indicatoron
- highlightthickness
- 상수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함