for(var i = 1; i<= 5; i++) { for(var j = 1; j<= 5; j++) { document.write("○"); } document.write("<br/>"); } ...
分类:
编程语言 时间:
2020-07-10 00:11:21
阅读次数:
81
第四天的问题 1. switch支持字符串String;同时case标签也必须为字符串或字面量; 2. 如果 case 语句块中没有 break 语句时,JVM 并不会顺序输出每一个 case 对应的返回值,而是继续匹配,匹配不成功则返回默认 case。 3. while、do...while和佛如 ...
分类:
其他好文 时间:
2020-07-09 22:07:12
阅读次数:
73
(4)优化TCP编写 客服端上传图片,服务端给客服端发消息问好 此demo的在上一个的基础上实现客服端与服务器端互相发送消息给对方,提高数据的读与取的效率,首先要先启动服务端,否则报错,因为TCP是可靠协议,所以没有对应的服务端时会报错,发送数据为图片 一.编写TCP协议服务端 1 package ...
分类:
Web程序 时间:
2020-07-09 17:55:18
阅读次数:
88
nginx location正则写法 示例: # 如果 url 含有 . , 并且 不以 do 或 action 结尾,则匹配成功。 location ~ .*\.(?!(do|action)$) { root /demo/code/webroot; } ^~ 标识符匹配后面跟-一个字符串。匹配字符 ...
分类:
其他好文 时间:
2020-07-09 15:28:42
阅读次数:
81
# mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # where to write logging data ...
分类:
数据库 时间:
2020-07-09 12:25:50
阅读次数:
128
问题背景:python通过grpc调用tfserving报错, 提示:AttributeError: module 'tensorflow_serving.apis.prediction_service_pb2' has no attribute 'beta_create_PredictionSer ...
分类:
编程语言 时间:
2020-07-09 12:12:29
阅读次数:
130
[Base target 属性 Base 对象定义和用法target 属性可设置或返回基础元素中 target 属性的值。target 属性指定了页面中在何处打开所有链接。语法baseObject.target=valuetarget 属性可以是以下的一个值:值描述_blank在新窗口打开链接_se... ...
分类:
Web程序 时间:
2020-07-09 10:39:36
阅读次数:
83
大水题来啦! 不过要注意A B都为零的情况,所以用do-while循环 C++ 1 #include<iostream> 2 #include<string> 3 #include<algorithm> 4 5 using namespace std; 6 7 int main() { 8 int ...
分类:
编程语言 时间:
2020-07-09 00:58:34
阅读次数:
73
C#-Tips July 8, 2020 11:51 PM C#调用C++ 参数void* c# ref C++ & c# 判断输入数据类型 Convert.ToInt64(),如果参数非数值会异常,需要try catch tryParse GetType() int i = 5; Console. ...
591. 连接图 III 中文English 给一个图中的 n 个节点, 记为 1 到 n . 在开始的时候图中没有边.你需要完成下面两个方法: connect(a, b), 添加一条连接节点 a, b的边 query(), 返回图中联通区域个数 样例 例1: 输入: ConnectingGraph ...
分类:
其他好文 时间:
2020-07-08 23:17:08
阅读次数:
92