python - 예약어, 주석

girean·2020년 11월 9일
0

python 익히기

목록 보기
3/8
post-thumbnail

코드

import keyword
print(keyword.kwlist)
# 예약어는 변수로 사용할 수 없다.
# 주석
'''
여러 줄에 대한 주석 처리도 할 수 있습니다.
print('hello world')
'''

실행결과

['False', 'None', 'True', '__peg_parser__', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
profile
Developer

0개의 댓글