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 |
Tags
- VS Code
- JSON
- Selenium
- windows forms
- C
- Visual Studio
- 오류
- label
- paramiko
- error
- ubuntu
- 프로그래머스
- C++
- 핑거스타일
- pytorch
- Docker
- 채보
- OpenCV
- SSH
- Linux
- mysql
- pandas
- 기타 연주
- 컨테이너
- YOLO
- Numpy
- LIST
- pip
- C#
- Python
Archives
- Today
- Total
기계는 거짓말하지 않는다
Python list 특정 길이, 값으로 초기화 본문
리스트 내포를 이용하거나 [value] * n으로 표현하면 된다.
# 길이 100 list를 생성하고 0으로 초기화
temp_list = [0 for i in range(100)]
temp_list = [0] * 100 # [value] * n
'Python' 카테고리의 다른 글
Python OpenCV, PIL Image shape, size (0) | 2021.08.10 |
---|---|
Python PermissionError: [Errno 13] Permission denied (0) | 2021.08.05 |
Python Numpy transpose (0) | 2021.08.04 |
Python Class 정렬, 정렬 기준 (0) | 2021.08.03 |
Python Index Error (0) | 2021.08.03 |
Comments