반응형
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 |
31 |
Tags
- dataframe
- Excel
- hive
- google apps script
- 파이썬
- Redshift
- SQL
- django
- math
- list
- c#
- array
- Mac
- numpy
- Google Spreadsheet
- gas
- PostgreSQL
- Apache
- GIT
- matplotlib
- PANDAS
- Tkinter
- Kotlin
- string
- Java
- Github
- PySpark
- Google Excel
- Python
Archives
- Today
- Total
목록2024/03/21 (1)
달나라 노트
Python Basic : Terminal 글자 색상, 배경 색상 입히기
Python에서는 Terminal에 어떤 글자를 출력할 때 내가 원하는 글자의 색상, 그리고 배경색을 선택할 수 있는 기능을 제공합니다. print('\033[38;2;120;150;80mapple\033[0m') 위 코드를 실행하면 아래처럼 초록색 글씨고 apple이 출력됩니다. print('\033[38;2;120;150;80mapple\033[0m') \033 ~ \033 -> color setting section을 의미. 38 -> Text color를 조절할 것이라는 의미. 2 -> RGB color를 사용할 것이라는 의미. 120 -> R 180 -> G 80 -> B m -> Setting apple -> Showing text [0m -> Reset color setting to defa..
Python/Python Basic
2024. 3. 21. 19:31