1.安装Nginx 1)使用Nginx官方的yum源 [root@localhost ~]# vim /etc/yum.repos.d/nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$bas ...
分类:
Web程序 时间:
2020-07-06 16:18:11
阅读次数:
81
function getCaption(obj){ var index=obj.lastIndexOf("\-"); obj=obj.substring(index+1,obj.length); // console.log(obj); return obj; } var str="字符串截取(某个 ...
分类:
其他好文 时间:
2020-07-06 16:05:09
阅读次数:
79
JDBC连接数据库实例 1、 数据库表 1.1、创建表 CREATE TABLE `users`( `uid` INT NOT NULL AUTO_INCREMENT COMMENT '用户id', `uname` VARCHAR(20) NOT NULL COMMENT '用户名', `upass ...
分类:
数据库 时间:
2020-07-06 13:14:28
阅读次数:
70
1. undifned control consequence 有非法的命令 有可能没有导入对应的宏包。见latex常用的宏包。 ...
分类:
其他好文 时间:
2020-07-06 11:20:14
阅读次数:
68
mysql> update test set create_time=concat('2013-10-01 ', floor(10+rand()*10),':',floor(10+rand()*49),':',floor(10+rand()*49)) where create_time='0000- ...
分类:
数据库 时间:
2020-07-06 00:42:41
阅读次数:
116
不支持flow st=>start: 闹钟响起 op=>operation: 与床板分离 cond=>condition: 分离成功? e=>end: 快乐的一天 st->op->cond cond(yes)->e cond(no)->op 不支持sequence 李雷 -> 韩梅梅: Hello ...
分类:
其他好文 时间:
2020-07-05 19:39:33
阅读次数:
74
Ajax XMLHttpRequest POST方法传递参数失败了 ...
分类:
Web程序 时间:
2020-07-05 15:16:51
阅读次数:
110
两个装饰函数 classmethod 被装饰的方法会成为一个静态方法 class Goods: __discount = 0.8 def __init__(self): self.__price = 5 self.price = self.__price * self.__discount @cla ...
分类:
其他好文 时间:
2020-07-05 15:08:41
阅读次数:
56
周赛地址(英):weekly contest 196 周赛地址(中):第 196 场周赛 仓库地址:week-Leetcode 1502. Can Make Arithmetic Progression From Sequence Given an array of numbers arr. A s ...
分类:
其他好文 时间:
2020-07-05 13:51:11
阅读次数:
57
三门问题(Monty Hall problem)的代码模拟 今天偶尔看到有人在讨论三门问题,这个问题有点意思,但稍微有点绕。 三门问题(Monty Hall problem)亦称为蒙提霍尔问题、蒙特霍问题或蒙提霍尔悖论,大致出自美国的电视游戏节目Let's Make a Deal。问题名字来自该节目 ...
分类:
其他好文 时间:
2020-07-05 00:48:30
阅读次数:
81