###题目 在20000个数中找一个满足下列条件的最大集合: 集合中所有数之间的最大公因数是1(即两两互质) ###代码 def _2018(arr: list): # 准备工具 arr = list(set(arr)) arr.sort() size = len(arr) my_dict = {} ...
分类:
其他好文 时间:
2020-06-06 18:25:27
阅读次数:
60
weblogic打补丁小结: 在WebLogic Server 10.3.4之后的版本, Oracle 提供了 PSUs (patch set updates). 具体参考(My Oracle Support Note 1306505.1). 在1470197.1 文档中,描述了weblogic当前 ...
分类:
Web程序 时间:
2020-06-05 15:28:53
阅读次数:
212
https://my.oschina.net/sdlvzg/blog/1798162 https://blog.csdn.net/weixin_30340353/article/details/99235730 ...
分类:
其他好文 时间:
2020-06-05 15:21:12
阅读次数:
69
问题: mysql root 没有任何权限 解决方案 1. add skip-grant-tables in /etc/my.conf [root@mysql~]# cat /etc/my.cnf|grep -i skip skip-grant-tables 2. restart mysql sys ...
分类:
数据库 时间:
2020-06-05 01:09:29
阅读次数:
163
Forms组件 forms组件 1.渲染html代码 2.校验数据 3.展示提示信息 数据校验前端可有可无,但是后端必须要有!!! 因为前端的校验是弱不禁风的 你可以直接修改,或者利用爬虫程序绕过前端页面直接朝后端提交数据 基本使用 from django import forms class My ...
分类:
其他好文 时间:
2020-06-04 21:23:17
阅读次数:
71
#!/bin/bash dir=/home/king while read line do my_dir="$dir/$line" if [ ! -d "$my_dir" ];then echo $my_dit mkdir $my_dir else echo "direc exist" fi { w ...
分类:
其他好文 时间:
2020-06-04 15:43:31
阅读次数:
118
在/etc/my.cnf配置文件中添加skip-grant-tables绕开MySQL5.7数据库密码验证echoskip-grant-tables>>/etc/my.cnf/etc/init.d/mysqldrestart直接使用mysql命令登录MySQL5.7数据库并修改root登录密码mysqlmysql>ALTERUSER‘root‘@‘loca
分类:
数据库 时间:
2020-06-04 12:12:19
阅读次数:
90
adapted from poj 2482 Fleeting time does not blur the memory of you. Has it really been three years since i first saw you? I still remember, vividly, ...
分类:
其他好文 时间:
2020-06-03 17:25:52
阅读次数:
89
1.前言 前面学习了 security的登录与登出 , 但是用户信息 是 application 配置 或内存直接注入进去的 ,不具有实用性,实际上的使用还需要权限管理,有些 访问接口需要某些权限才可以使用 于是多了个权限管理的问题 2.环境 spring boot 2.1.6.RELEASE my ...
分类:
数据库 时间:
2020-06-03 00:49:41
阅读次数:
80
今天弄了下mysql的几个安全设置: 只允许本地登录,允许ssh通过远程登录1.my.cnf #skip-networkingbind-address = 127.0.0.1 此项设置允许 tcp/ip 访问,但是只有127.0.0.1 有可以访问,如果把skip-networking 开启。则只能 ...
分类:
数据库 时间:
2020-06-03 00:19:05
阅读次数:
107