直接上代码:
#encode:u8 import re s1 = ‘adkkdk‘ #判断s1字符串是否负责都为小写的正则 an = re.search(‘^[a-z]+$‘, s1) if an: print ‘yes‘ else: print ‘no‘
时间: 2024-12-12 14:08:55
直接上代码:
#encode:u8 import re s1 = ‘adkkdk‘ #判断s1字符串是否负责都为小写的正则 an = re.search(‘^[a-z]+$‘, s1) if an: print ‘yes‘ else: print ‘no‘