# from model.DataBaseUtils import MysqlUtils # db=MysqlUtils() # with open('./zhangdu_account_config.csv','r',encoding='utf-8') as f: # # print(f.readlines()) # for i in f.readlines(): # a= i.replace('\n','') # db.quchen_text.execute(f"insert into order_account_text(platform,text) values('掌读','{a}')") # a={'x':11,'y11':2} # for i in a: # print(i) # a=['a','b'] # b=[1,2] # print(dict(zip(a,b))) # get def zsq(func): def x(*args,**kwargs): try: func(*args,**kwargs) except Exception as e: print(e) return x def zsq2(info): def wrapper(func): def deco(*args, **kwargs): try: func(*args, **kwargs) except Exception as e: print(info, e) return deco return wrapper @zsq2("趣程") def a(p,q): print(p/q) if __name__ == '__main__': a(2,0)