- 博客(3)
- 收藏
- 关注
转载 python 时间戳与日期之间的转换
import time , datetime# 日期转换时间戳date_time = '2019-07-03 18:27:05'# 转换为时间数组array = time.strptime(date_time, "%Y-%m-%d %H:%M:%S")print(array)print(array.tm_year)print(array.tm_mon) # 7print(array.tm...
2019-07-03 18:42:00 140
转载 python 每日日志的记录与删除
current_time_logo = datetime.datetime.now().strftime('%Y-%m-%d')def write_data(data): global current_time_logo with open('./log/trace_request.log', 'a+') as logs: current_time = date...
2019-07-02 14:44:00 801
转载 session与cookie
摘抄 ???? 感觉很棒https://www.cnblogs.com/linguoguo/p/5106618.html转载于:https://www.cnblogs.com/love-chen-forever/p/10877245.html
2019-05-16 18:19:00 85
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人