可以用正则方法,例如: import re str='The100 god102 is a dog' rep=re.sub('\d+','',str) print rep. 本回答被提问者采纳. 已赞过 已踩过<.
確定! 回上一頁