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