str.isnumeric(): True if 只包含数字;otherwise False。注意:此函数只能用于unicode string
str.isdigit(): True if 只包含数字;otherwise False。
str.isalpha():True if 只包含字母;otherwise False。
str.isalnum():True if 只包含字母或者数字;otherwise False。
转载于:https://www.cnblogs.com/liuyihua1992/p/9649739.html
原文链接:https://blog.csdn.net/weixin_30342827/article/details/99921901
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
还没有人抢沙发呢~