Notice
Recent Posts
Recent Comments
Link
250x250
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- Class
- XML
- Java
- system
- for
- Linux
- AI
- computer
- data structure
- DATAPATH
- react
- github
- mysql
- instruction
- Algorithm
- DS
- MIPS
- Rag
- html
- architecture
- javascript
- CSS
- web
- php
- python
- function
- openai
- DB
- control
- Pipelining
Archives
- Today
- Total
Rosie
[Python] 주석(Comment) 처리 본문
728x90

주석(Comment)이란 ? ? ?
주석은 프로그래밍에 있어서 코드 내용을 메모하는데 목적으로 쓰입니다.
주석(Comment)의 종류
한 줄 주석
# 코딩을 시작합니다.
print("Hello World") # 문자열을 출력합니다.
여러 줄 주석
"""
이렇게
여러줄
주석도
가능합니다.
"""
# or
'''
쌍따옴표가 아닌
외따옴표도
가능합니다.
'''
주석(Comment) 단축키
Window - Control + /
MacOS - Command(⌘) + /
◡̈
728x90
'Python' 카테고리의 다른 글
| [Python] 데이터 타입(Data Types)의 정의와 종류 (2) | 2022.09.23 |
|---|---|
| [Python] 들여쓰기(Indented block) 이란? (0) | 2022.09.23 |
| [Python] 변수의 정의와 선언 (0) | 2022.09.23 |
| [MacOS] Terminal에서 파이썬 실행 및 종료하기 (0) | 2022.09.06 |
| [Python] MacOS에서 Conda 사용하기 (0) | 2022.09.02 |