<分区> 分区>
我想区分两个 python 字符串 2015-07-01 和 2015-Jul-01
Case 1: Digits
ORSpecial charactersCase 2: Everything else (characters)
我知道 isdigit() 函数,但它只能识别数字,不能识别特殊字符。
特殊字符是指连字符 - 或斜线/
<分区> 分区>
我想区分两个 python 字符串 2015-07-01 和 2015-Jul-01
Case 1: Digits
ORSpecial charactersCase 2: Everything else (characters)
我知道 isdigit() 函数,但它只能识别数字,不能识别特殊字符。
特殊字符是指连字符 - 或斜线/