04 2019 档案

摘要:# datetime时间转为字符串def Changestr(datetime1): str1 = datetime1.strftime('%Y-%m-%d %H:%M:%S') return str1 # 字符串时间转为时间戳def Changetime(str1): Unixtime = tim 阅读全文
posted @ 2019-04-24 18:21 年轻人——001 阅读(15261) 评论(0) 推荐(0) 编辑
摘要:得到的就是 [[0, 9, 1], [0, 9, 2], [0, 9, 3], [0, 9, 4], [0, 9, 5], [0, 9, 6], [0, 9, 7]] 阅读全文
posted @ 2019-04-23 11:46 年轻人——001 阅读(641) 评论(0) 推荐(0) 编辑
摘要:实现异步是三大步: #一,导入ThreadPoolExecutorfrom concurrent.futures import ThreadPoolExecutor #二,实例化executor对象(执行者) executor = ThreadPoolExecutor(max_workers=20) 阅读全文
posted @ 2019-04-22 10:30 年轻人——001 阅读(1443) 评论(0) 推荐(0) 编辑
摘要:一 ,list_car ,前端传过来参数字典,从字典中获取参数 二, 根据参数去数据库中查找,条件查找 三,将查找出来的对象,flask_sqlalchemy.BaseQuery,然后通过这个对象的items方法,得到由对象组成的列表,然后通过列表生成式和as.dict方法,[r.as_dict() 阅读全文
posted @ 2019-04-11 10:30 年轻人——001 阅读(319) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示