234234234
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
摘要: 因为有需求,需要程序在内存大小保存不变来保存数据,但是数据的取用又是按队列的来操作,节约时间节约内存,但是c++基础又不太好. #include <iostream> #include <string> using namespace std; typedef struct NN { string 阅读全文
posted @ 2021-04-25 15:21 ukeepgoing 阅读(2582) 评论(0) 推荐(0)
摘要: unsigned int data1[4] = { 1,2,3,4 }; printf("%d\n", data1); int* data = (int*)data1; printf("%d\n", data); 阅读全文
posted @ 2021-04-18 14:25 ukeepgoing 阅读(147) 评论(0) 推荐(0)
摘要: 描述:用来执行定时任务(异步),点个赞不过分吧 # 计时器类(异步) # time: 间隔时间(秒), 毫秒请使用小数(0.1xxxx) # handle: 要进行的异步处理器(名称) # arg: 异步处理器的参数(元组) class setInteval(threading.Thread): d 阅读全文
posted @ 2021-03-07 20:11 ukeepgoing 阅读(763) 评论(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 ukeepgoing 阅读(106) 评论(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 ukeepgoing 阅读(108) 评论(0) 推荐(0)
摘要: 参考链接: https://www.imooc.com/article/16218 阅读全文
posted @ 2021-01-21 17:09 ukeepgoing 阅读(40) 评论(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 ukeepgoing 阅读(307) 评论(0) 推荐(0)
摘要: 标称型:一般在有限的数据中取,而且只存在‘是’和‘否’两种不同的结果(一般用于分类) 数值型:可以在无限的数据中取,而且数值比较具体化,例如4.02,6.23这种值(一般用于回归分析) 参考或者来源: https://blog.csdn.net/qq_17478541/article/details 阅读全文
posted @ 2021-01-13 15:13 ukeepgoing 阅读(102) 评论(0) 推荐(0)
摘要: 滚动条的高度为440pxele.scrollTop = 9000 直接定位到9000px这个位置 阅读全文
posted @ 2020-12-27 19:28 ukeepgoing 阅读(79) 评论(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 ukeepgoing 阅读(584) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 17 下一页
23423423423