oo_第二单元总结 需求:乘客不定时到达,需模拟电梯运行,并支持实时添加电梯。电梯有种类之分,不同种类的电梯运行速度、载客量、可抵达楼层范围均有差别。 设计策略 容器类 FloorQueue 代表单个各楼层的请求队列 Floors 线程安全类,以楼层结构储存了整栋楼的请求,封装了addPersonR ...
分类:
其他好文 时间:
2021-04-27 15:22:16
阅读次数:
0
整体流程(以PASCAL VOC为例) 1.下载PASCAL VOC2012数据集,并将数据集转为tfrecord格式 2.选择并下载预训练模型 3.配置训练文件configuration(所有的训练参数都通过配置文件来配置) 4.训练模型 5.利用tensorboard查看训练过程中loss,ac ...
分类:
其他好文 时间:
2021-04-27 14:57:01
阅读次数:
0
本文主要讲解如何通过RabbitMQ实现定时任务(延时队列) 环境准备 需要在MQ中进行安装插件 地址链接 插件介绍地址:https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/ 使用场景 作为一个新的预支 ...
for..in loops iterate over the entire prototype chain, which is virtually never what you want. 意思是使用for..in会遍历整个原型链,这样不是很好的实现方法,推荐使用Object.keys formRu ...
分类:
其他好文 时间:
2021-04-27 14:24:47
阅读次数:
0
OOP(面向对象编程 Object-Oriented Programming),是一种以对象为基础的编程模式。 优点: 易维护。 易拓展。 对象可重复使用。 四大特性: 封装性:对象属性是隐藏的,对象属性修改需要通过对象方法。 继承性:子类可以把父类的属性和方法都继承过来,无需重新定义。 多态性:多 ...
分类:
其他好文 时间:
2021-04-27 14:16:54
阅读次数:
0
<template> <div class="box"> <div class="swipers"> <template v-for="(item, index) in lists" > <div class="item" v-if="index==active" :key="'0'+index" ...
分类:
其他好文 时间:
2021-04-26 13:50:48
阅读次数:
0
First reader and writers problem (读者优先) no reader be kept waiting unless a writer has obtain permission to write semaphore rw=1, readcnt_m=1; int read ...
分类:
其他好文 时间:
2021-04-26 13:39:39
阅读次数:
0
意思就是在使用response.sendRedirect()或者request.getRequestDispatcher(args).forward(request,response)进行页面跳转时,后面还有未执行完的语句,解决方法就是在界面跳转语句时加return;或者竟可能把跳转语句加到末尾。 ...
分类:
其他好文 时间:
2021-04-26 13:35:56
阅读次数:
0
## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
CDH添加HUE时数据库连接失败 查看cloudera-scm-server日志报错信息是:ImportError: libxslt.so.1: cannot open shared object file: No such file or directory 原因是centos缺少库文件,执行如下 ...
分类:
其他好文 时间:
2021-04-22 15:53:25
阅读次数:
0