上一页 1 ··· 80 81 82 83 84 85 86 87 88 ··· 346 下一页
摘要: MySQL新版默认使用caching_sha2_password作为身份验证插件,而旧版是使用mysql_native_password当连接MySQL时报错“plugin caching_sha2_password could not be loaded”时,可换回旧版插件。 操作mysql数据库 阅读全文
posted @ 2022-06-10 14:12 emanlee 阅读(252) 评论(0) 推荐(0)
摘要: pycharm Cannot find declaration to goto 方法一: 指定解释器 查看项目文件结构是不是空的: 方法二: 关闭, 删除 .idea 文件夹 重新打开项目 阅读全文
posted @ 2022-06-09 18:59 emanlee 阅读(673) 评论(0) 推荐(0)
摘要: 同步远程仓库到本地 git pull=git fetch + merge $ git pull --rebase origin mastererror: cannot pull with rebase: You have unstaged changes.error: please commit o 阅读全文
posted @ 2022-06-07 19:44 emanlee 阅读(2248) 评论(0) 推荐(0)
摘要: 查看nginx启动用户,将静态资源赋权给改用户访问即可。如静态资源目录:/data/django/static赋权:chmod 755 /data/django/static -Rsettings.py# Static files (CSS, JavaScript, Images)# https:/ 阅读全文
posted @ 2022-06-06 10:13 emanlee 阅读(295) 评论(0) 推荐(0)
摘要: uwsgi 启动或停止 启动: uwsgi --ini uwsgi.iniuwsgi.pid 是ini配置文件中配置的 停止: uwsgi --stop uwsgi.pid 例子uwsgi --stop ./script/uwsgi.pid查看日志tail -50f ./script/uwsgi.l 阅读全文
posted @ 2022-06-06 09:23 emanlee 阅读(7924) 评论(0) 推荐(0)
摘要: filter(func, seq) 返回filter对象,其中包含序列seq中使得单参数函数func返回值等价于True的那些元素,如果函数func为None则返回包含seq中等价于True的元素的filter对象,filter对象中的元素只能使用一次 filter(function,iterabl 阅读全文
posted @ 2022-06-04 10:59 emanlee 阅读(91) 评论(0) 推荐(0)
摘要: import random print( random.randint(1,10) ) # 产生 1 到 10 的一个整数型随机数 ; randint(a,b ) 可以取a,可以取b。 [a,b] print( random.random() ) # 产生 0 到 1 之间的一个随机浮点数;可以取0 阅读全文
posted @ 2022-06-02 12:22 emanlee 阅读(193) 评论(0) 推荐(0)
摘要: 解决方案: 关闭重启Word即可。 WORD保存时出现内存或磁盘空间不足的原因:之前在剪贴板保存了很多文件,这些文件就占用了内存,日复一日年复一年导致现在这个内存不足的问题出现了。 解决方案(不行): 1. 打开“计算机”,在左边资源管理器处,右键选中系统盘C盘选择“属性”: 2. 在属性常规选项卡 阅读全文
posted @ 2022-05-29 11:36 emanlee 阅读(11735) 评论(0) 推荐(0)
摘要: PyCharm 默认已经安装了以下功能(Git, GitHub): PyCharm 默认 VCS 菜单 安装gitee的步骤如下: Settings -- Plugins -- Marketplace -- gitee -- install 重新启动 pycharm 2021.3 【安装 gitee 阅读全文
posted @ 2022-05-28 22:39 emanlee 阅读(154) 评论(0) 推荐(0)
摘要: 单划线(_) _代表交互式解释器会话中上一条的执行结果。 还可以使用单个下划线来格式化变量的值, a=1_000_000 。 单个下划线还可以使用在循环语句中。作为一个名称:作为临时性的名称使用,但是在后面不会再次用到该名称。这种用法在循环中会经常用到。 __xx__ “魔法函数” ,也就是说,它是 阅读全文
posted @ 2022-05-22 20:23 emanlee 阅读(1305) 评论(0) 推荐(0)
上一页 1 ··· 80 81 82 83 84 85 86 87 88 ··· 346 下一页