jwwlchen 当前离线
列兵
pcl_test 当前离线
荣誉版主
#!/usr/bin/env python# encoding: utf-8import refile1 = open('1.txt', 'r')txt = file1.read()reg = re.compile(r'[\da-z特殊字符]', re.I)txt = reg.sub('', txt)file2 = open('2.txt','w')file2.write(txt)file1.close()file2.close()print "完成"COPY
TOP