python中str函数isdigit、isdecimal、isnumeric的区别。 num = "1" #unicode num.isdigit() # True num.isdecimal() # True num.isnumeric.
確定! 回上一頁