### range(start,stop ,step) - 按循序生成整数 #生成整数,参数可是负值,STEP可以是负值,参数可以只是一个整数 for item in range(0,10,2): print(item) 结果: 0 2 4 6 8 列2: for item in range(10) ...
分类:
其他好文 时间:
2021-04-14 12:16:21
阅读次数:
0
systemd systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置 1. 由来 历史上,Linux 的启动一直采用 init 进程,下面的命令用来启动服务 $ /etc/init.d/httpd start # 或者 $ service httpd start ...
分类:
其他好文 时间:
2021-04-14 12:06:39
阅读次数:
0
打开/etc/mysql/mysql.cnf 找到bind-address= 127.0.0.1 把它改成 bind-address= 0.0.0.0 (mysql5.7.24版本,配置文件目录是:/etc/mysql/mysql.conf.d/mysqld.cnf) 命令:service mysq ...
分类:
数据库 时间:
2021-04-14 11:58:38
阅读次数:
0
1、includes()、startsWith()、endsWith()2、repeat()3、模板字符串(template string)1、includes()、startsWith()、endsWith()includes():返回布尔值,表示是否找到了参数字符串。startsWith():返 ...
分类:
其他好文 时间:
2021-04-13 12:20:52
阅读次数:
0
详细错误如下 System.AggregateException:“Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Swashbuckl ...
该案例中涉及performance_schema.data_locks表是MySQL8.0中新增的,8.0之前的版本不支持,如果一个事物长时间未提交,我们虽然可以从information_schema.innodb_trx、performance_schema.events_transactions ...
分类:
其他好文 时间:
2021-04-13 12:13:46
阅读次数:
0
github地址: https://github.com/yansongda/pay 文档地址: https://pay.yansongda.cn/ 扩展小程序红包 https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapte ...
分类:
微信 时间:
2021-04-13 12:00:14
阅读次数:
0
数据库安装,待完善 https://www.cnblogs.com/wendy-0901/p/12673705.html https://blog.csdn.net/yougoule/article/details/56680952 数据库启动 service mysql start; 数据库关闭 ...
分类:
数据库 时间:
2021-04-13 11:43:45
阅读次数:
0
GDB 是我们平时调试 c/c++程序的利器, 查起复杂的 bug 问题,比打印大法要好的多,但是也不得不说, gdb 在默认情况下用起来并不是很好用,最近学习到几个高级点的技巧,分享下: 一 美化打印 先上个例子: #include <stdio.h>typedef struct { int i ...
分类:
数据库 时间:
2021-04-12 12:47:30
阅读次数:
0
When you run hexo g on any web instances, like on AWS or Azure, you might get the following error: (node:3568) ExperimentalWarning: The fs.promises AP ...
分类:
其他好文 时间:
2021-04-12 12:28:51
阅读次数:
0