if-then if command then commands fi bash shell中的if语句运行在if行定义的命令. 如果命令突出状态时0, 将执行then后面的命令. 如果命令的退出状态时0以外的其他值,那么then后面的命令将不会执行.#!/bin/bash # testing th ...
分类:
系统相关 时间:
2020-05-22 17:27:54
阅读次数:
55
最近在学习thymeleaf模板引擎,在使用th:text读取国际化文本时读取不到值,如下: 资源目录结构如下: index.html 内容: home.properties 内容: 在度娘的帮助下,找到了问题的所在, spring.messages.basename 默认值为 messages , ...
分类:
其他好文 时间:
2020-05-19 18:00:57
阅读次数:
250
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:
其他好文 时间:
2020-05-16 15:13:55
阅读次数:
66
下载解压切换目录略~ 编译nginx 没有报错 然后我们make 第一个报错就这样出来了 _ : src/core/ngx_murmurhash.c: In function ‘ngx_murmur_hash2’: src/core/ngx_murmurhash.c:37:11: error: th ...
分类:
其他好文 时间:
2020-05-16 00:11:16
阅读次数:
1613
目录 1023 1037 1321 2021 2380 2733 3635 5839 5840 5842 1023: Taxi Cab Scheme 返回顶部 描述 Running a taxi station is not all that simple. Apart from the obvio ...
分类:
其他好文 时间:
2020-05-15 21:51:39
阅读次数:
95
线性模型可以拟合线性问题,这是毋庸置疑的,但实际中处理的数据往往比直线更加复杂的非线性数据。这时,依然可以尝试使用线性模型来解决这个问题。 对每个特征进行加权后作为新的特征,然后在这个扩展的数据集上训练线性模型 啥意思呢,举个例子: 假设函数为: $$h_\theta(x)=\theta_0+\th ...
分类:
其他好文 时间:
2020-05-13 23:12:17
阅读次数:
70
昨日内容回顾 表格标签 <table> <thead> <tr> 一个tr就是一行 <th></th> 表头里面建议使用th加粗文本 </tr> </thead> 表头 <tbody> <tr> <td></td> 表单里面的建议直接用td即可 </tr> </tbody> 表单 </table> ...
分类:
Web程序 时间:
2020-05-13 20:04:47
阅读次数:
74
表格标签 <table> <thead> <tr> 一个tr就表示一行 <th>username</th> 加粗文本 <td>username</td> 正常文本 </tr> </thead> 表头(字段信息) <tbody> <tr> <td>jason</td> <td>123</td> <td ...
分类:
Web程序 时间:
2020-05-12 18:43:52
阅读次数:
89
题目 Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th ...
分类:
其他好文 时间:
2020-05-12 14:14:19
阅读次数:
70
一.this指针 1.不同的对象,数据成员是独有的,成员函数是共享的 2.调用成员函数的时候,会默认传入this指针,this指针指向了调用函数的对象的首地址 3.this通过ecx传递,调用约定 __thiscall 4.成员函数的调用约定可以修改 5.this指针是class *const th ...
分类:
其他好文 时间:
2020-05-12 09:42:13
阅读次数:
49