fanjindong
fanjindong
this: contents = ( 'YAFMAIL', 'This is the body, and here is just text http://somedomain/image.png', 'You can find an audio file attached.', {'/data/lvmama/11/1008/02ffc004d9c91a4f5f3858b5c3239b06.jpg': '美食'} ) but:  chaotic,chaotic,chaotic!!! what can...
> rdb -c memory --db 0 /var/lib/redis/6379/dump.rdb -f memory.csv result: 
if self._async_conn is None raise `AttributeError: 'NoneType' object has no attribute 'cursor'` Peewee-async used in our production environment, When high concurrency, the following error is raised ``` AttributeError: 'NoneType' object...
refactor base on python3
**Part of the code:** ```python data=tablib.Dataset(headers=['userId','userPhone', 'phone', 'address']) for item in resp_data: order_id,user,phone,address=item.get('id',''),item.get('userPhone',''),item.get('phone',''),item.get('contact',{}).get('address') print('>>>',database,user,phone,address) if not address: continue data.append([order_id,user,phone,address]) with open('data_6.9-8.23.xls', 'wb') as f: f.write(data.xls) ``` **Part of the print:**...