Python处理字符串中的数字 1、 from string import digits aa = '1043数学' res = aa..translate(str.maketrans('','',digits)) print(res) 2、slice()