길/Python

str.isdigit()

7he8oy 2021. 2. 13. 18:32

Return True if all characters in the string are digits and there is at least one character, False otherwise.

 

Digits include decimal characters and digits that need special handling, such as the compatibility superscript digits.

This covers digits which cannot be used to form numbers in base 10, like the Kharosthi numbers.

Formally, a digit is a character that has the property value Numeric_Type=Digit or Numeric_Type=Decimal.

' > Python' 카테고리의 다른 글

Class Properties  (0) 2021.02.13
Class Methods / Static Methods / Properties  (0) 2021.02.13
Data Hiding  (0) 2021.02.12
Object Lifecycle / reference count  (0) 2021.02.12
클래스 / 객체 / 인스턴스 구분  (0) 2021.02.12