python 链接数据时报错 TypeError: %d format: a number is required, not str 是因为端口写成字符串格式的了 报错的形式 写成这样了 解决办法: 很简单就是把port=3306, 再次运行就不会报错了 ...
分类:
编程语言 时间:
2020-12-14 12:59:43
阅读次数:
4
正则表达式符号使用小总结: 1、[ ]:方括号。匹配需要的字符集合,如[1-3]或[123]都是匹配1、2或者3。 2、^:脱字符号。方括号中加入脱字符号,就是匹配未列出的所有其他字符,如[^a]匹配除a以外的所有其他字符。 3、\:反斜杠。和python字符串使用规则一样,可以匹配特殊字符本身,如 ...
分类:
编程语言 时间:
2020-12-10 10:53:22
阅读次数:
3
安装Oracle11g 拉取镜像: docker pull registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g 下载完成后 查看镜像: docker images 创建容器: docker run -d -p 1521:1521 --name o ...
分类:
其他好文 时间:
2020-12-09 12:10:09
阅读次数:
6
问题描述:把本地库里的内容推送到远程库的时候出错? git push -u origin master fatal: Could not read from remote repository. Please make sure you have the correct access rights ...
分类:
数据库 时间:
2020-12-09 11:57:01
阅读次数:
5
一日一技:MongoDB如何正确中断正在创建的索引摄影:产品经理厨师:kingname我们在使用MongoDB的时候,会出现需要给一个已经存在的大集合的某个字段增加索引的情况。索引分为前台索引和后台索引,对应到pymongo中创建索引的代码:importpymongohandler=pymongo.MongoClient().yourdb.yourcol#前台索引handler.create_in
分类:
数据库 时间:
2020-12-08 12:22:13
阅读次数:
6
mysql初始化密码常见报错问题 1,mysql5.6是密码为空直接进入数据库的,但是mysql5.7就需要初始密码 cat /var/log/mysqld.log | grep password 2,然后执行 mysql -uroot -p ,输入上面的到的密码进入,用该密码登录后,必须马上修改新 ...
分类:
数据库 时间:
2020-12-07 12:09:24
阅读次数:
7
A.createA()是一个事务,createA()方法本身会createAentity(),生成A对象。里面包含调用了 B.createB(), C.createC()方法。 B.createB()也是一个事务,包含调用了 B1.createB1(),C1.createC1()方法。B1.crea ...
分类:
其他好文 时间:
2020-12-07 12:00:08
阅读次数:
3
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.co ...
分类:
其他好文 时间:
2020-12-07 11:59:50
阅读次数:
4
package LeetCode_771 /** * 771. Jewels and Stones * https://leetcode.com/problems/jewels-and-stones/ * You're given strings J representing the types o ...
分类:
其他好文 时间:
2020-12-05 10:48:43
阅读次数:
7
1. 前文汇总 「补课」进行时:设计模式系列 2. 命令模式 命令模式是一个高内聚的模式,其定义为: Encapsulate a request as anobject,thereby letting you parameterize clients with differentrequests,q ...
分类:
其他好文 时间:
2020-12-04 11:16:49
阅读次数:
6