标签:adl line readline pen style desktop pil with 取数
import re patten=re.compile(r"\d+\.?\d*") #s=[‘自由水岸花园9幢1303室‘] #x=re.findall(patten,s[0]) #print(x) with open(‘D:\Desktop\测试\wq.txt‘,‘r‘) as f,open(‘D:\Desktop\测试\ws.txt‘,‘r‘) as f2: a=f.readlines() b=f2.readlines() for i in range(len(a)): x=re.findall(patten,a[i]) for j in range(len(b)): y=re.findall(patten,b[j]) if x==[] or y==[]: continue elif set(x)>set(y) or set(y)>set(x): print(‘{}{}‘.format(a[i],b[j])) else: continue
标签:adl line readline pen style desktop pil with 取数
原文地址:https://www.cnblogs.com/zhuyu139/p/12067005.html