Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- javascript
- MongoDB
- DBFilter
- Collections
- 서브쿼리
- cursor()
- python데이터베이스연동
- PostgreSQL
- sql
- statement
- sqlite3
- DB
- PostgresDB
- 자바스크립트
- postgres
- onetoone
- insertOne
- MySQL
- 데이터베이스
- query
- Join
- 파이썬
- insert_into
- python
- PreparedStatement
- 몽고디비
- subquery
- SubqueryFilter
- 밴쿠버응급실
- DATABASE
Archives
- Today
- Total
목록IndexError (1)
새벽코딩
1-1 리스트(list)
중첩리스트 >>> a = [[1,2,3],[4,5,6],[7,8,9]] >>> a[0] [1, 2, 3] >>> a[0][1] 2 리스트내에 문자열이 들어 있는 경우 아래와 같이 출력 가능 >>> a =["문자열"] >>> a[0] '문자열' >>> a[0][0] '문' 발생하는 오류 IndexError : 리스트의 범위를 넘어가면, IndexError 발생 (단, 슬라이싱에서는 발생 안함) >>> a =[1,2,3,4,5] >>> a[10] Traceback (most recent call last): File "", line 1, in IndexError: list index out of range in 연산자 리스트안에 해당 요소가 있으면 True, 없으면 False 출력 >>> 1 in [1,2,..
Programming/Python
2022. 8. 2. 14:17