1 개요[ | ]
- Python pop()
- 파이썬 pop()
pop()
Python
Copy
fruits = ["Apple", "Banana", "Orange"];
element = fruits.pop();
print (element)
# Orange
print (fruits)
# ['Apple', 'Banana']
pop(0)
Python
Copy
fruits = ["Apple", "Banana", "Orange"];
element = fruits.pop(0)
print(element)
# Apple
print (fruits)
# ['Banana', 'Orange']
2 같이 보기[ | ]
편집자 Jmnote 10.20.2.7
로그인하시면 댓글을 쓸 수 있습니다.