摘要: 首先要了解浏览器请求服务器的缓存逻辑 接下来才是服务器的响应流程 其中资源的更新判断逻辑 是否需要分片下载判断逻辑 分片下载范围的确定 参考: https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/If-Range https://www 阅读全文
posted @ 2022-04-22 21:06 云端之上~~ 阅读(63) 评论(0) 推荐(0)
摘要: #!/usr/bin/python #coding:utf-8 ''' The main function ''' import sys import time import traceback import json import MySQLdb import httplib import url 阅读全文
posted @ 2021-12-25 14:37 云端之上~~ 阅读(77) 评论(0) 推荐(0)
摘要: 看了网上这么多正则表达的博客,真到了自己要使用的时候还是无法达到自己的目的,因此想系统的整理下对自己有用的几种写法。 local function lua_string_split(str, delim) if (type(str) ~= "string") then return {} end l 阅读全文
posted @ 2021-09-15 15:04 云端之上~~ 阅读(269) 评论(0) 推荐(0)
摘要: 先留个坑,之后都搜集相关的资料彻底搞清楚来。 cnd跨域:https://help.aliyun.com/document_detail/40183.html 跨域:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CORS 阅读全文
posted @ 2021-08-27 09:48 云端之上~~ 阅读(25) 评论(0) 推荐(0)
摘要: 将升序数组转为高度平衡的二叉搜索树 eg: Input: nums = [-10,-3,0,5,9] Output: [0,-3,9,-10,null,5] Explanation: [0,-10,5,null,-3,null,9] is also accepted: /** * Definitio 阅读全文
posted @ 2021-08-20 09:14 云端之上~~ 阅读(33) 评论(0) 推荐(0)
摘要: Given an array nums of integers, return how many of them contain an even number of digits. Example:Input: nums = [12,345,2,6,7896] Output: 2 Explanati 阅读全文
posted @ 2021-08-10 23:05 云端之上~~ 阅读(101) 评论(0) 推荐(0)
摘要: 四元法 function ret = normal_gravity( data ) % 数据在重心上正则化 [m, n] = size(data); data_mean = mean(data);%坐标在x,y,z上的平均值 ret = data - ones(m, 1) * data_mean; 阅读全文
posted @ 2021-08-06 21:30 云端之上~~ 阅读(285) 评论(0) 推荐(0)