python文件、经纬度转换、json读写、时间格式转换 # # 整型时间数字转时间日期 # date_time = datetime.datetime(2019, 1, 9, 6, 23, 27) # # # 字符串日期转时间戳 # # 先通过time.strptime生成time.struct_time # timeArray = time.strptime(str(datetime.datetime(2019, 1, 9, 6, 23, 27)), "%Y-%m-%d %H:%M:%S") # time.struct_time(tm_year=2019, tm_mon=1,