\%\[\]\,\。]", "", st) print(ste) #从字符串中提取数字 totalCount = '100abc' totalCo...
ste = re.sub("[A-Za-z0-9\!\%\[\]\,\。]", "", st) print(ste) #从字符串中提取数字 totalCount = '100abc' totalCount = re.sub("\D", "", totalCount) p 学到老 2019/01/25 12.4K0 python从字符串中提取数字 javahttps网络安全正则表达式 发布者:全栈程序员栈长,转载请注明出处:http...