파이썬 pop()

1 개요[ | ]

Python pop()
파이썬 pop()
pop()
fruits = ["Apple", "Banana", "Orange"];
element = fruits.pop();
print (element)
# Orange
print (fruits)
# ['Apple', 'Banana']
pop(0)
fruits = ["Apple", "Banana", "Orange"];
element = fruits.pop(0)
print(element)
# Apple
print (fruits)
# ['Banana', 'Orange']

2 같이 보기[ | ]

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