赞
踩
- from txdpy import get_chinese,get_num,get_letter,get_Bletter,get_Sletter,get_middle
-
- s='456ad4辣椒面a5s大神DSA1564dsadA52和GV456ad4辣椒面a5s大神DSA1564dsadA52和GV'
- print(get_chinese(s))#获取中文
- print(get_num(s))#获取数字
- print(get_letter(s))#获取字母
- print(get_Bletter(s))#获取大写字母
- print(get_Sletter(s))#获取小写字母
- get_num_letter(s)#获取数字或字母或数字和字母
- # 获取指定字符串中间的字符串
- print(get_middle('4','4',s))
- print(get_middle('4','4',s,True))
- print(get_middle('4','4',s,False))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。