The manual documentation says: "isdigit( ) Return true if all characters in the string are digits and there is at least one character, false otherwise. For 8-bit strings, this method is locale-dependent. " So it makes sense that something like 5.6 would return false. But what if we want...
从形式上看,十进制字符是Unicode通用类别 "Nd "中的一个字符。 The Python documentation notes the difference between the three methods. str.isdigit Return true if all characters in the string are digits and there is at least one character, false otherwise. Digits include decimal characters and digit...