摘要:
def strip_str(stripstr,text): ''' 给定的字符串去除特定的字符 :param stripstr: 要去除字段 :param text: 原文 :return: ''' new_str=None if stripstr in text: new_str=text.rep 阅读全文
摘要:
from functools import wraps def My_decorate(func): @wraps(func) def fn(*args,**kwargs): print('decorate called') return func(*args,**kwargs) return fn 阅读全文