"파이썬 None"의 두 판 사이의 차이

30번째 줄: 30번째 줄:
==같이 보기==
==같이 보기==
* [[null]]
* [[null]]
* [[파이썬 is]]
* [[파이썬 is not]]
* [[Python-JSON 자료형 매핑]]
* [[Python-JSON 자료형 매핑]]



2020년 1월 14일 (화) 01:44 판

1 개요

Python None Keyword
파이썬 None
print( None )
# None
print( type(None) )
# <class 'NoneType'>
x = None
if x == None:
	print( 'x == None' )
# x == None
if x is None:
	print( 'x is None' )
# x is None
y = 0
if y != None:
	print( 'y != None' )
# y != None
if y is not None:
	print( 'y is not None' )
# y is not None

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}