摘要: 一、浏览器中的请求头复制到文件中 二、代码解析 #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2022/4/3 22:37 @Author : @File :header.py @Version :1.0 @Function: "" 阅读全文
posted @ 2022-04-03 22:53 淡怀 阅读(821) 评论(0) 推荐(0)
摘要: 一、header文件 把浏览器中的header复制到文件中 二、代码解析 备注:可直接复制使用 import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson. 阅读全文
posted @ 2022-04-03 11:25 淡怀 阅读(1830) 评论(0) 推荐(0)
摘要: /** * 读取文本文件 * * @param filePath 文件路径 * @return 返回读取到的每行 列表 */ public static ArrayList<String> readFile(String filePath) { ArrayList<String> resultDat 阅读全文
posted @ 2022-04-03 11:06 淡怀 阅读(254) 评论(0) 推荐(0)
摘要: public class TimeCalc { /** * 将指定数字转换为时间(格式: 00:00:00,000) * * @param timeNumber 如 216059999 * @return 如 60:00:59,999 */ public static String calc(lon 阅读全文
posted @ 2022-04-03 10:50 淡怀 阅读(256) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { int h = 5; int m = 45; int s = 2; int ms = 67; // 补零 System.out.println(String.format("%02d:%02d:%02d,%03d", 阅读全文
posted @ 2022-04-03 10:47 淡怀 阅读(476) 评论(0) 推荐(0)