본문 바로가기

Python_Beginer/Study

Python Remark(주석문)

반응형

Code>

'''
hello world!
Life is too short, You need Python
'''
# 화면에 출력
print('Hello, World')


Result>

Hello, World


Process finished with exit code 0


정리>

1. 주석문?

1-1. 프로그램 코드 안에서 개발자 필요에 따라 명시하는 설명문.


1-2. 주석문은 프로그램 실행시 제외 처리 됨.


1-3. 특정 코드 부분이 실행 안되게 테스트 할때도 사용.


2. 주석문 종류

2-1. 기본 주석문 : #

# 주석문


2-2. 여러줄 처리 주석문 : ''' ~ '''

'''
주석문
'''


2-3. 여러줄 처리 주석문 : """ ~ """

"""
주석문
"""


반응형

'Python_Beginer > Study' 카테고리의 다른 글

Python Operator(연산자)  (1) 2019.04.23
Python Variable(변수)  (0) 2019.04.23
PyCharm Community Edition Setup  (0) 2019.04.23
Python Basic Setup  (0) 2019.04.23
Python Basic  (0) 2019.04.21