摘要: 1 import urllib.request 2 import re 3 #判断传入的地址是否有效 4 def set_url(func): #func=net_url 5 def inner1(*args,**kwargs): 6 if re.match('^http.*[cn,com]$',args[0])!=None: 7 ... 阅读全文
posted @ 2018-07-11 22:15 青红*皂了个白 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1 def wrapper1(func): #func= get_inter2 2 def get_inter1(*args,**kwargs): 3 print('get1——前') 4 f=func(*args,**kwargs) #调用get_inter2() 5 print('get1——后') 6 ... 阅读全文
posted @ 2018-07-11 12:59 青红*皂了个白 阅读(464) 评论(0) 推荐(0) 编辑