import restr1 = '2366年1月9日'pattern = pile(r'\d+')res = re.findall(pattern, str1)for i in res:print unicode(i, 'utf-8', 'ignore')
输出:
2316
1
9
时间:2024-02-28 09:00:42
import restr1 = '2366年1月9日'pattern = pile(r'\d+')res = re.findall(pattern, str1)for i in res:print unicode(i, 'utf-8', 'ignore')
输出:
2316
1
9
Excel公式技巧22: 从字符串中提取指定长度的连续数字子串
2019-01-26
python提取字符串中数字_EXCEL数字在字符串中间怎么提取?
2022-12-30
java 提取字符串中前面的数字_Java提取字符串中的数字
2024-06-10
高考英语作文 Our English Teacher(我们的英语老师)1200字英语作文
2024-07-20