会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Bronya天使
博客园
首页
管理
上一页
1
2
3
4
5
6
7
8
下一页
2020年12月2日
在阿里云上的centos服务器自带python版本 2.7,如何更改成python3呢
摘要: ps:Centos服务器上自带了python2 和 python3 这个一篇把python命令更改为python3的教程 第一步,查看一下系统版本和python信息 cat /etc/redhat-release #查看内核版本 python -V #查看python版本 which python
阅读全文
posted @ 2020-12-02 11:46 Bronya天使
阅读(711)
评论(0)
推荐(0)
2020年11月17日
01 | 基础架构:一条SQL查询语句是如何执行的
摘要: 我想来跟你聊聊MySQL的基础架构。我们经常说,看一个事儿千万不要直接陷入细节里,你应该先鸟瞰其全貌,这样能够帮助你从高维度理解问题。同样,对于 MySQL的学习也是这样。平时我们使用数据库,看到的通常都是一个整体,比如,你有一个最简单的表,表里只有一个ID字段,再执行下面这个查询语句时: sele
阅读全文
posted @ 2020-11-17 14:41 Bronya天使
阅读(91)
评论(0)
推荐(0)
2020年9月11日
导包路径
摘要: 导包路径: 是一个普通文件夹, 不能含有 __init__.py文件 from xxx.yyy import zzz xxx 是一个包, xxx文件夹下必须有__init__.py 文件 from xxx.yyy import zzz xxx所在的文件夹就是导包路径, 导包路径必须在sys.path
阅读全文
posted @ 2020-09-11 10:53 Bronya天使
阅读(219)
评论(0)
推荐(0)
2020年9月2日
如何设置django 连接 db.sqlite3
摘要:
阅读全文
posted @ 2020-09-02 19:00 Bronya天使
阅读(1110)
评论(0)
推荐(0)
2020年8月19日
django导入环境变量 Please specify Django project root directory
摘要: 在创建了套层的文件后,django需要的解释器也需要重新设置,普通的设置明显不能用,那么该如何解决呢 下图: 点击OK 依次点击 apply 和 ok
阅读全文
posted @ 2020-08-19 15:15 Bronya天使
阅读(1224)
评论(0)
推荐(1)
2020年8月13日
替换django的user模型,mysql迁移表报错 django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependen cy user.0001_initial on database 'default'.
摘要: django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency user.0001_initial on datab
阅读全文
posted @ 2020-08-13 16:06 Bronya天使
阅读(270)
评论(0)
推荐(0)
2020年8月12日
解决Chrome调试(debugger)
摘要: 可能方案一:或者查看自己有的地方是不是写了 debugger ,当代码执行到debugger的时候,Chrome就会启动调试模式。 如下图,后来我把它注释掉,也就好了。 解决方案二:点击右下方箭头指的地方,点成蓝色,就可以了。 如下图所示 然后刷新一下页面
阅读全文
posted @ 2020-08-12 08:04 Bronya天使
阅读(1633)
评论(0)
推荐(0)
2020年8月1日
check the manual that corresponds to your MySQL server version for the right syntax to use near 'order) values ('徐小波','XuXiaoB','男','1',' at line 1")
摘要: 在用原生SQL语句插入的时候,报了一个错,下面我们来看一下我的原生 SQL 和报错情况 sql = "insert into bluser (name,gender,order) values ('%s','%s','%s')" % (name, gender,order) 可以看出SQL语句是没有
阅读全文
posted @ 2020-08-01 19:20 Bronya天使
阅读(1186)
评论(0)
推荐(0)
2020年7月14日
MySQL命令(其三)
摘要: -- sql强化演练( goods 表练习) -- 查询类型 cate_name 为 '超级本' 的商品名称 name 、价格 price ( where ) select name,price from goods where cate_name = "超级本"; -- 显示商品的种类 -- 1
阅读全文
posted @ 2020-07-14 16:17 Bronya天使
阅读(201)
评论(0)
推荐(0)
MySQL操作命令(其二)
摘要: -- 查询练习 -- 查询所有字段 -- select * from 表名; select * from students; -- 查询指定字段 -- select 列1,列2,... from 表名; select name,gender from students; -- 使用 as 给字段起别
阅读全文
posted @ 2020-07-14 16:08 Bronya天使
阅读(134)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页