自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

转载 mysql 8.0+第一次登陆修改密码+log不显示随机密码

1、随机密码不显示 如果在log中不显示随机密码, 1.删除原来安装过的mysql残留的数据(这一步非常重要,问题就出在这) rm -rf /var/lib/mysql 2.重启mysqld服务 systemctl restart mysqld 3.再去找临时密码 grep ‘temporary password’ /var/log/mysqld.log 本文适用于mysql5.7以上版本 2.修...

2020-04-09 21:01:14 703

原创 函数递归的坑

之前对函数递归的理解就是“自己调用自己”,这样理解没错,但这样忽视了一个很重要的问题:在递归一次后,第一次的函数是将会被挂起,而不是直接结束,在递归到最里面一层后,最里面一层结束,接下来仍然会运行倒数第二层,如果这时候恰巧你没有使用适当的方法结束这一层,又恰好你在递归f(*args)代码的外侧写了一个循环,那这外面一层的函数将会继续执行下去,就会出现很多匪夷所思的结果。 例子:求一个数的所有质数因...

2020-02-16 10:32:53 353

原创 python常用文本处理方法小结

A B C D E F G H I J K L M N O P Q R S 1 字符串分割 obj = str.split(str="", num=string.count(str)). #str -- 分隔符,默认为所有的空字符,包括空格、换行(\n)、制表符(\t)等。 #num -- 分割次数。默认为 -1, 即分隔所有。 2 列表排序 sort()无返回值,直接在原list上进行 ...

2020-02-15 16:23:13 329 1

原创 正则表达式re

剩下的不高兴搞了,放在网盘里了,复制粘贴没意思

2019-10-08 21:34:28 86

原创 2019/9/30_codewars自虐_Count_the_number_of_Duplicates

Count the number of Duplicates Write a function that will return the count of distinct case-insensitive alphabetic characters and numeric digits that occur more than once in the input string. The inpu...

2019-10-01 23:40:26 216 1

原创 2019/9/28_codewars自虐_杜鹃的有趣问题

Magpies are my favourite birds Baby ones even more so… It is a little known fact^ that the black & white colours of baby magpies differ by at least one place and at most two places from the colour...

2019-09-30 00:16:13 105

原创 2019/9/28_codewars自虐_play_with_digits

题目:Some numbers have funny properties. For example: 89 --> 8¹ + 9² = 89 * 1 695 --> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 --> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51 Given a positive intege...

2019-09-29 19:32:57 341

原创 2019/9/28_codewars自虐_输出单词的中间字母

**题目原文:**You are going to be given a word. Your job is to return the middle character of the word. If the word’s length is odd, return the middle character. If the word’s length is even, return the mi...

2019-09-28 21:06:17 187

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除