"함수 is space()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
 
5번째 줄: 5번째 줄:
==Python==
==Python==
[[category: Python]]
[[category: Python]]
<source lang='Python'>
<syntaxhighlight lang='Python'>
print( ' '.isspace() )
print( ' '.isspace() )
print( '  '.isspace() )
print( '  '.isspace() )
17번째 줄: 17번째 줄:
# False
# False
# False
# False
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[함수 trim()]]
*[[함수 trim()]]

2020년 11월 2일 (월) 02:33 기준 최신판

isspace

1 Python[ | ]

print( ' '.isspace() )
print( '  '.isspace() )
print( '\t\n'.isspace() )
# True
# True
# True

print( 'a'.isspace() )
print( '\\n'.isspace() )
# False
# False

2 같이 보기[ | ]

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