234234234
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 描述:用来执行定时任务(异步),点个赞不过分吧 # 计时器类(异步) # time: 间隔时间(秒), 毫秒请使用小数(0.1xxxx) # handle: 要进行的异步处理器(名称) # arg: 异步处理器的参数(元组) class setInteval(threading.Thread): d 阅读全文
posted @ 2021-03-07 20:11 你若愿意,我一定去 阅读(700) 评论(0) 推荐(0) 编辑
摘要: 思想:跟家里铺瓷砖的想法是一样的 给出大矩形的宽高:width, height 切块的宽高:span(width, height) def slice_rectangle(width, height, span): shape = [0, 0] # 高宽 blocks = [] # (lx,ly) 阅读全文
posted @ 2021-03-07 16:26 你若愿意,我一定去 阅读(95) 评论(0) 推荐(0) 编辑
摘要: def getConnectedNum(mat): cnt = 0 h = len(mat) for i in range(h): w = len(mat[i]) for j in range(w): if mat[i][j] == 0: cnt = cnt + 1 seekConnected(ma 阅读全文
posted @ 2021-02-22 21:58 你若愿意,我一定去 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 参考链接: https://www.imooc.com/article/16218 阅读全文
posted @ 2021-01-21 17:09 你若愿意,我一定去 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 参考博客: https://www.cnblogs.com/zhangjiansheng/p/6925722.html # coding=gbk from PIL import Image # 灰度策略 def strategy_avg(r, g, b): return int((r + g + b 阅读全文
posted @ 2021-01-14 11:58 你若愿意,我一定去 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 标称型:一般在有限的数据中取,而且只存在‘是’和‘否’两种不同的结果(一般用于分类) 数值型:可以在无限的数据中取,而且数值比较具体化,例如4.02,6.23这种值(一般用于回归分析) 参考或者来源: https://blog.csdn.net/qq_17478541/article/details 阅读全文
posted @ 2021-01-13 15:13 你若愿意,我一定去 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 滚动条的高度为440pxele.scrollTop = 9000 直接定位到9000px这个位置 阅读全文
posted @ 2020-12-27 19:28 你若愿意,我一定去 阅读(72) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>videoJs</title> </head> <body> <script type="text/javascript"> const originFile 阅读全文
posted @ 2020-12-15 22:37 你若愿意,我一定去 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一道题,要求以ctrl+z作为键盘输入来结束条件,之前没有遇到过,然后就动手测试了一番。 int main() { int n; while(1) { int g = scanf("%d", &n); printf("%d\n", g); } return 0; } 通过上面的这段代码,我只 阅读全文
posted @ 2020-11-24 19:47 你若愿意,我一定去 阅读(628) 评论(0) 推荐(0) 编辑
摘要: 二叉搜索树也叫二叉排序树或二叉查找树 定义: 非空左子树的所有键值小于其根结点的键值 非空右子树的所有键值大于其根节点的键值 左、右子树都是二叉搜索树 如: 阅读全文
posted @ 2020-11-20 12:02 你若愿意,我一定去 阅读(98) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
23423423423