03 2021 档案
pycharm 的专业版安装
摘要:1.我们首先进入idea官网, https://www.jetbrains.com/ 找到最新版本的pycharm,这里就以windows专业版为例。点击下载。 2破解方法https://www.cnblogs.com/smarter/p/13576428.html 阅读全文
posted @ 2021-03-17 11:58 bruce.sharp 阅读(186) 评论(0) 推荐(0)
python的动态导入模块
摘要:一、动态的导入模块 module = ‘src.user_info’ func_name = 'add' import importlib m = importlib.import_module(module) func = getattr(m,func_name) func() 阅读全文
posted @ 2021-03-11 17:56 bruce.sharp 阅读(76) 评论(0) 推荐(0)
python的pymysql笔记
摘要:一、简单版 from builtins import printimport pymysqlconn = pymysql.connect(host='127.0.0.1',port=3306,user='root',passwd='mysql',db='test')cursor = conn.cur 阅读全文
posted @ 2021-03-11 10:21 bruce.sharp 阅读(60) 评论(0) 推荐(0)
mysql的表操作
摘要:注意添加外键时候 foreign key () 括号记得写 阅读全文
posted @ 2021-03-08 17:43 bruce.sharp 阅读(58) 评论(0) 推荐(0)
mysql问题汇总
摘要:一、navicat for mysql 连接mysql时候出现如下错误: 解决办法: 更改加密方式; 1.以root账户用户登录Mysql: PS C:\Users\Dingzg-Pro> mysql -u root -p 2.更改加密方式: mysql> ALTER USER 'root'@'lo 阅读全文
posted @ 2021-03-08 16:28 bruce.sharp 阅读(75) 评论(0) 推荐(0)
mysql的授权管理和用户管理笔记
摘要:一、 阅读全文
posted @ 2021-03-08 14:52 bruce.sharp 阅读(70) 评论(0) 推荐(0)
python的IO多路复用
摘要:一、 非阻塞状态: import socketfrom builtins import print, Exceptionimport timesk = socket.socket()address = ('127.0.0.1',8000)sk.bind(address)sk.listen(3)#设置 阅读全文
posted @ 2021-03-05 15:01 bruce.sharp 阅读(45) 评论(0) 推荐(0)
windows的mysql安装
摘要:1、在安装的目录下创建data目录 2、进入安装后的mysql中的bin目录下: 3、mysqld --initialize-insecure 进行数据库的初始化(创建root用户,密码为空) 4、运行mysqld 启动mysql服务 执行命令出错时,可能时cmd要以管理员身份运行的原因 阅读全文
posted @ 2021-03-04 17:52 bruce.sharp 阅读(73) 评论(0) 推荐(0)
网络基础的笔记
摘要: 阅读全文
posted @ 2021-03-03 16:29 bruce.sharp 阅读(45) 评论(0) 推荐(0)
python的协程(可实现高并发)
摘要:一、生成器例子 def f(): print('你好') name = yield 44 print(name) yield 55g = f()next(g)print(g.send('zhou')) 二、 from builtins import print, next, rangedef con 阅读全文
posted @ 2021-03-03 10:44 bruce.sharp 阅读(573) 评论(0) 推荐(0)
python的编码问题
摘要:一、python2解释器默认是ascii码 python3解释器默认是utf8编码 print ‘测试’ 时python2是byte类型所以会报错 阅读全文
posted @ 2021-03-01 16:49 bruce.sharp 阅读(62) 评论(0) 推荐(0)
python进程笔记
摘要:一、创建进程 from builtins import print, range, superfrom multiprocessing.context import Processimport timedef f(name): time.sleep(1) print('hello', name, t 阅读全文
posted @ 2021-03-01 15:27 bruce.sharp 阅读(84) 评论(0) 推荐(0)