"파이썬 isdigit()"의 두 판 사이의 차이

 
7번째 줄: 7번째 줄:
print( '1234'.isdigit() ) # True
print( '1234'.isdigit() ) # True


print( 'abc'.isdigit() )   # False
print( 'abc'.isdigit() )   # False
print( '123abc'.isdigit() ) # False
print( '123abc'.isdigit() ) # False
</syntaxhighlight>
</syntaxhighlight>

2024년 1월 4일 (목) 22:56 기준 최신판

1 개요[ | ]

Python isdigit()
파이썬 isdigit()
파이썬 str.isdigit()
print( '1234'.isdigit() ) # True

print( 'abc'.isdigit() )    # False
print( '123abc'.isdigit() ) # False

2 같이 보기[ | ]

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