会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小小小光子
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页
2020年3月21日
MySQL 让主键id 从1开始自增
摘要: 方法一: 清空表数据并且将主键自增长从1开始(1.先清空表数据2.在把表的自增长设置为1) DELETE FROM grade; ALTER TABLE grade AUTO_INCREMENT=1; 方法二: 使用truncate清空全部数据主键自增长是从1开始(效率更高)truncate tab
阅读全文
posted @ 2020-03-21 16:27 小小小光子
阅读(4853)
评论(0)
推荐(1)
2020年3月20日
python 找字符串中所有包含字符的下标
摘要: python 找字符串中所有包含字符的下标 import re[(i.start(), i.end()) for i in re.finditer(正则表达式, 字符串)]
阅读全文
posted @ 2020-03-20 13:46 小小小光子
阅读(2632)
评论(1)
推荐(1)
2020年3月17日
centos7防火墙命令
摘要: 参考地址:https://blog.csdn.net/ytangdigl/article/details/79796961 查看防火墙状态 firewall-cmd --state 停止firewall systemctl stop firewalld.service 禁止firewall开机启动
阅读全文
posted @ 2020-03-17 00:19 小小小光子
阅读(112)
评论(0)
推荐(0)
2020年2月21日
如何将npm升级到最新版本
摘要: 查看当前版本 npm -v 更新到最新版本 npm install -g npm 更新到指定版本 npm -g install npm@5.6.0 (@后面加指定版本号) https://blog.csdn.net/qwdafedv/article/details/58048935
阅读全文
posted @ 2020-02-21 14:43 小小小光子
阅读(1211)
评论(0)
推荐(0)
将 Npm 的源替换成淘宝的源
摘要: 修改源地址为淘宝 NPM 镜像 npm config set registry http://registry.npm.taobao.org/ 修改源地址为官方源 npm config set registry https://registry.npmjs.org/
阅读全文
posted @ 2020-02-21 14:35 小小小光子
阅读(673)
评论(0)
推荐(0)
2020年2月9日
MySQL 时间格式化/ MySQL DATE_FORMAT
摘要: 转载出处: https://blog.csdn.net/moakun/article/details/82290387 要将日期值格式化为特定格式,请使用DATE_FORMAT函数。 DATE_FORMAT函数的语法如下: DATE_FORMAT(date,format); DATE_FORMAT(
阅读全文
posted @ 2020-02-09 11:02 小小小光子
阅读(1674)
评论(0)
推荐(0)
2020年2月7日
Python中crypto模块进行AES加密和解密
摘要: Python中crypto模块进行AES加密和解密 原文地址:https://www.cnblogs.com/youleng/p/9047477.html #coding: utf8 import sys from Crypto.Cipher import AES from binascii imp
阅读全文
posted @ 2020-02-07 23:28 小小小光子
阅读(956)
评论(0)
推荐(0)
windows环境下python3安装Crypto
摘要: windows环境下python3安装Crypto crypto在python上面的名字是pycrypto,它是一个第三方库,但是已经停止更新三年了,所以不建议安装这个库; pycryptodome是pycrypto的延伸版本,用法和pycrypto是一模一样的; pip install pycry
阅读全文
posted @ 2020-02-07 17:34 小小小光子
阅读(4393)
评论(0)
推荐(2)
2020年2月4日
GIT下载慢
摘要: GIT下载慢 官网下载git的时候网速只有几十K,我们可以通过淘宝镜像网站下载https://npm.taobao.org/mirrors/git-for-windows/
阅读全文
posted @ 2020-02-04 11:09 小小小光子
阅读(110)
评论(0)
推荐(0)
2020年1月16日
CentOS pip install mysqlclient 安装报错
摘要: CentOS pip install mysqlclient 安装报错 安装依赖: yum install mysql-devel 然后再执行: pip install mysqlclient
阅读全文
posted @ 2020-01-16 11:06 小小小光子
阅读(628)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
18
下一页
公告