有 $n$ 个单词,想把这个 $n$ 个单词变成一个句子,具体来说就是从左到右依次把两个单词合并成一个单词,合并两个单词的时候,要找到最大的 $i(i\ge 0)$,满足第一个单词的长度为 $i$ 的后缀和第二个单词长度为 $i$ 的前缀相等,然后把第二个单词第 $i$ 位以后的部分接到第一个单词后 ...
分类:
其他好文 时间:
2020-04-04 00:18:27
阅读次数:
50
HTML端 //这里需要注意的是,千万不要把onclick放到input file上 <div class="load_box"> <img src="ajax返回显示的图片,初始化可以设置个默认的URL" alt="" id="img1" class="star" style="height:14 ...
分类:
微信 时间:
2020-04-03 18:36:48
阅读次数:
124
Ansible User 模块添加单用户并ssh-key复制 1 Ansible 版本: ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/pl ...
分类:
其他好文 时间:
2020-04-02 18:01:20
阅读次数:
73
0x00:函数原理源码 0x01:命令行参数 就命令行参数而言,ex0是程序名第一个参数,hello是命令行的第二个参数,都处存在数组中 ...
分类:
其他好文 时间:
2020-04-01 11:07:43
阅读次数:
78
单元测试框架unittest 单元测试 单元测试(unit testing)是指对软件中的最小可测试单元进行检查和验证。对于单元测试中单元的含义,一般来说,要根据实际情况去判定其具体含义,如C语言中单元指一个函数,Java里单元指一个类,图形化的软件中可以指一个窗口或一个菜单等。总的来说,单元就是人 ...
分类:
其他好文 时间:
2020-03-31 21:24:12
阅读次数:
79
1. 邮箱服务器: qq邮箱使用 smtp.qq.com 163邮箱使用 smtp.163.com 2. 运行时报错:smtplib.SMTPAuthenticationError: (535, b'Login Fail. Please enter your authorization code t ...
分类:
其他好文 时间:
2020-03-31 19:15:29
阅读次数:
351
ab性能测试 性能优化方案 How To Optimize Nginx Configuration https://www.digitalocean.com/community/tutorials/how to optimize nginx configuration 专题阅读 "1\. Nginx ...
分类:
其他好文 时间:
2020-03-30 19:48:42
阅读次数:
79
ETCD配置参数 原文地址:https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/configuration.md 成员标记 --name 人类可读的该成员的名字 默认值:"default" 环境变量:ETCD_NAME ...
分类:
其他好文 时间:
2020-03-30 19:41:15
阅读次数:
86
when trying the sample code of "link_crawler3.py", it will always fail with below message: /usr/bin/python3 /home/cor/webscrappython/Web_Scraping_with ...
分类:
编程语言 时间:
2020-03-30 16:24:22
阅读次数:
94
看的第一遍,找不到sass,查看node-sass文件,里面没有文件 解决办法 下载sass之前,要先修改源 先把node-modules删除掉 执行以下命令 npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sa ...
分类:
其他好文 时间:
2020-03-30 16:05:28
阅读次数:
100