摘要: ''' 计算时间差 ''' import time import math import datetime from datetime import timedelta from calendar import monthrange """时间格式化""" def date_format(date) 阅读全文
posted @ 2022-08-11 10:55 张小七soso 阅读(31) 评论(0) 推荐(0) 编辑
摘要: import time #格式化时间(2019-11-27T16:29:54) def TimeFormatS(tS): # t = "2019-11-27T16:29:54" #先转换为时间数组,然后转换为其他格式 timeStruct = time.strptime(tS, "%Y-%m-%dT 阅读全文
posted @ 2022-08-11 10:54 张小七soso 阅读(8) 评论(0) 推荐(0) 编辑
摘要: # coding=gbk # -*- coding: utf-8 -*- import os, sys def mkdir(basepath): path = os.path.join(basepath) if os.path.exists(path): print('文件已存在') else: o 阅读全文
posted @ 2022-08-11 10:48 张小七soso 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 通过python代码来实现: # -*- coding: utf-8 -*- import pandas as pd def xlsx_to_csv_pd(): data_xls = pd.read_excel('配置类变量测试列表.xlsx', index_col=0) # 输入xlsx文件名 d 阅读全文
posted @ 2022-08-11 10:44 张小七soso 阅读(725) 评论(0) 推荐(0) 编辑