比如:
newstring = ''.join(map(lambda x: x if not x.isdigit() else "", string.split() ))
与空格完全相同:
newstring = ' '.join(map(lambda x: x if not x.isdigit() else "", string.split() )).replace(' ', ' ')