반응형
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
- Redshift
- matplotlib
- Java
- google apps script
- math
- dataframe
- c#
- numpy
- Apache
- string
- PySpark
- SQL
- Github
- Google Spreadsheet
- GIT
- Mac
- array
- gas
- PostgreSQL
- 파이썬
- Google Excel
- Tkinter
- PANDAS
- Excel
- list
- Python
- Kotlin
- django
- hive
Archives
- Today
- Total
목록terminal text color (1)
달나라 노트

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