"파이썬 append()"의 두 판 사이의 차이

(새 문서: ==개요== ;Python append() ;파이썬 append() <source lang='python'> colors = ['red', 'blue', 'green'] colors.append('pink') print( colors ) # ['red', 'blue', 'green', 'pink'] </so...)
 
 
(같은 사용자의 중간 판 5개는 보이지 않습니다)
3번째 줄: 3번째 줄:
;파이썬 append()
;파이썬 append()


<source lang='python'>
<source lang='python' run>
colors = ['red', 'blue', 'green']
colors = ['red', 'blue', 'green']
colors.append('pink')
colors.append('pink')
print( colors )
print( colors ) # ['red', 'blue', 'green', 'pink']
# ['red', 'blue', 'green', 'pink']
</source>
</source>


==같이 보기==
==같이 보기==
* [[파이썬 insert()]]
* [[파이썬 extend()]]
* [[파이썬 remove()]]
* [[파이썬 pop()]]
* [[파이썬 pop()]]
* [[파이썬 리스트 메소드]]
* [[함수 array_push()]]


[[분류: Python 리스트]]
[[분류: Python 리스트]]

2020년 2월 4일 (화) 21:05 기준 최신판

1 개요[ | ]

Python append()
파이썬 append()
colors = ['red', 'blue', 'green']
colors.append('pink')
print( colors ) # ['red', 'blue', 'green', 'pink']

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}