会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tslam
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
33
34
35
36
37
38
39
40
41
···
50
下一页
2022年8月4日
PyCharm中 .idea文件夹
摘要: 1 不要在本地删除其中的文件 其是记录一些信息: 如 1)你打开一个项目后的解释器配置 2)你之前在PyCharm中打开的哪些文件,其记录到.idea中, 重新打开PyCham时其会从中读取. 3) 其他一些东西 2 不要把其传到远程仓库, 当然你已经传了就算了.
阅读全文
posted @ 2022-08-04 10:04 tslam
阅读(331)
评论(0)
推荐(0)
2022年8月3日
xxx.sort() sorted() order by 排序
摘要: 1 sort 与 sorted 区别: sort 是应用在 list 上的方法,sorted 可以对所有可迭代的对象进行排序操作。 list 的 sort 方法返回的是对已经存在的列表进行操作,而内建函数 sorted 方法返回的是一个新的 list,而不是在原来的基础上进行的操作 参考: http
阅读全文
posted @ 2022-08-03 17:45 tslam
阅读(50)
评论(0)
推荐(0)
windows 文件被占用、文件夹被占用
摘要: 方法1: 参考: https://wenku.baidu.com/view/4af4b0a0bfeb19e8b8f67c1cfad6195f312be818.html 方法2: 360有一个 解除占用的功能. 腾讯电脑管家上那个试了,不管用. 方法3: 找见文件, 若不重要强制删除,粉碎.
阅读全文
posted @ 2022-08-03 16:10 tslam
阅读(237)
评论(0)
推荐(0)
timeout 请求超时
摘要: 跟你后端代码没关系, 让前端再发一次请求试下. 根据百度结果: 可能跟Nginx设置有关系 参考: https://www.php.cn/windows-414313.html
阅读全文
posted @ 2022-08-03 16:06 tslam
阅读(54)
评论(0)
推荐(0)
可以把一个项目中代码复制到另一个项目吗?
摘要: 可以
阅读全文
posted @ 2022-08-03 15:29 tslam
阅读(72)
评论(0)
推荐(0)
2022年8月2日
Django 数据库迁移命令
摘要: 1 何时执行? 情况1 在models.py中新建模型表后, 需要执行数据库迁移命令才能表成功在数据库中创建. 延伸: 当删除库,重新建库后ye需要 情况2 当对models.py进行修改后 2 命令是什么? python manage.py makemigrations python manage
阅读全文
posted @ 2022-08-02 20:53 tslam
阅读(159)
评论(0)
推荐(0)
1045, "Access denied for user 'root'@'localhost' (using password: YES)"
摘要: 项目数据库连接不成功,查看数据库的库名、用户名、密码是否正确. 案例
阅读全文
posted @ 2022-08-02 18:23 tslam
阅读(95)
评论(0)
推荐(0)
raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)
摘要: 除标题外,还有报错: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.6.7.None 解决: 需要改: > 虚拟环境> Lib\site-packages
阅读全文
posted @ 2022-08-02 14:01 tslam
阅读(86)
评论(0)
推荐(0)
2022年8月1日
关于值班的理解
摘要: 项目代码中有一句'白班'&'夜班' 这里的意思是: 还有上连班的. 这时,若要过滤白班人员信息需要,用模糊查询: 字段_ _contain xxx.objects.filter(onduty_type_ _contain=onduty_type_)
阅读全文
posted @ 2022-08-01 08:48 tslam
阅读(38)
评论(0)
推荐(0)
2022年7月31日
python 格式化
摘要: 1 %s 格式化字符串 2 f 占位符内包含变量.如{a} {b} a = 'xiaoliu' b = 12.35 print(f'{a}成绩提高了{b}') # xiaoliu成绩提高了12.35 3 format
阅读全文
posted @ 2022-07-31 21:11 tslam
阅读(21)
评论(0)
推荐(0)
上一页
1
···
33
34
35
36
37
38
39
40
41
···
50
下一页
公告