티스토리 뷰
반응형
List 사용법
Python Collections (Arrays)
There are four collection data types in the Python programming language:
- List is a collection which is ordered and changeable. Allows duplicate members.
- Tuple is a collection which is ordered and unchangeable. Allows duplicate members.
- Set is a collection which is unordered and unindexed. No duplicate members.
- Dictionary is a collection which is unordered, changeable and indexed. No duplicate members.
List 사용예 >
- thislist = ["apple", "banana", "cherry"]
- thislist.append("orange")
- thislist.remove("banana")
- len(thislist)
- if "apple" in thislist:
- for x in thislist:
다음과 같은 List 함수를 사용할수 있다.
자료출처 :
https://www.w3schools.com/python/python_lists.asp
끝.
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- END key
- 환경설정
- web
- vscode
- cmd실행
- venv
- 미밴드4
- 장고
- 미밴드
- amaztools
- win10
- 프로젝트
- Windows7
- Quiz
- cmd창
- 가상환경
- HOME key
- angular
- Windows
- 프로젝트 생성
- 한글패치
- win7
- HOME/END
- django
- development
- Python
- cmd
- 윈도우
- Karabiner-Elements
- 파이썬
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함