234234234
摘要: 描述:用来执行定时任务(异步),点个赞不过分吧 # 计时器类(异步) # time: 间隔时间(秒), 毫秒请使用小数(0.1xxxx) # handle: 要进行的异步处理器(名称) # arg: 异步处理器的参数(元组) class setInteval(threading.Thread): d 阅读全文
posted @ 2021-03-07 20:11 你若愿意,我一定去 阅读(704) 评论(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 你若愿意,我一定去 阅读(96) 评论(0) 推荐(0) 编辑
23423423423