![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题
learning-striving
积跬步以至千里,积细流以成江海。
展开
-
解决python/pycharm中import导入模块时报红却能运行的问题
解决python/pycharm中import导入模块时报红,却能运行的问题,右键单击项目,将项目Mark Directory as→Sources Root。原创 2024-05-06 21:55:45 · 420 阅读 · 1 评论 -
解决TypeError: ForeignKey.__init__() missing 1 required positional argument: ‘on_delete‘报错
原因:在django2.0后,定义外键和一对一关系的时候需要加on_delete选项,此参数为了避免两个表里的数据不一致问题。执行python manage.py makemigrations时报错如下。在外键定义中加入on_delete=models.CASCADE。原创 2024-05-06 16:55:43 · 312 阅读 · 1 评论 -
解决ImportError: Couldn‘t import Django. Are you sure it‘s installed ...报错及cmd终端更换默认python解释器
即:importterror:无法导入Django。您确定它已在PYTHONPATH环境变量中安装并可用吗?你忘记激活虚拟环境了吗。打开环境变量,打开步骤:右键单击此电脑→属性→高级系统设置→高级→环境变量→系统变量→。执行python manage.py runserver命令时出现以下错误。将python3.10解释器上移至anaconda之前,如下。更换前后效果如下 (编辑环境变量后需重新打开终端)已安装django的python3.10,如下。未安装django的python3.8,如下。原创 2024-05-06 12:10:19 · 1975 阅读 · 1 评论 -
word如何实现不同章节显示不同页眉
写论文时遇到如下情形,如何设置每章节页眉不同?第二章页眉跟第一章一样,如下图。在第二章前一页空白处,选择依次。设置第二章节页眉,效果如下。,进入页眉编辑状态,点击。原创 2024-03-03 13:20:48 · 741 阅读 · 0 评论 -
VMware Workstation 未能启动 VMware Authorization Service。您可以尝试手动启动 VMware Authorization Service。如果此问题仍然…
如何解决VMware Workstation 未能启动 VMware Authorization Service。您可以尝试手动启动 VMware Authorization Service。如果此问题仍然存在,请联系VMware支持部门。开启ubuntu虚拟机时启动失败,弹出如下提示。退出软件,以管理员身份运行,重新进入。原创 2024-01-08 18:01:46 · 2359 阅读 · 2 评论 -
Latex参考文献中大写字母编译后自动变成了小写,如何保持原字母大写形式
bib文件参考文献中大写自动变为小写,如何保持原大写问题。Latex: 保持参考文献大小写,overleaf文献编译后,原大写字母自动变成了小写字母,如何保持原字母大写原创 2023-09-11 10:24:12 · 2856 阅读 · 0 评论 -
UserWarning: Glyph 30005 (\N{CJK UNIFIED IDEOGRAPH-7535}) missing from current font解决方式方法
UserWarning: Glyph 30005 (\N{CJK UNIFIED IDEOGRAPH-7535}) missing from current font如何解决,UserWarning: Glyph 30005 (\N{CJK UNIFIED IDEOGRAPH-7535}) missing from current font警告原因及解决办法原创 2022-12-03 13:35:23 · 5238 阅读 · 2 评论 -
FutureWarning: The default value of numeric_only in DataFrameGroupBy.mean is deprecated解决方法
如何解决FutureWarning: The default value of numeric_only in DataFrameGroupBy.mean is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function ,警告解决办法原创 2022-12-02 11:21:28 · 14070 阅读 · 2 评论 -
正则表达式AttributeError: ‘NoneType‘ object has no attribute ‘group‘报错原因及解决办法
正则表达式学习,出现AttributeError: 'NoneType' object has no attribute 'group'错误的原因及解决办法原创 2022-11-14 22:16:57 · 2962 阅读 · 0 评论 -
解决报错:scp: /Desktop/2.txt: No such file or directory
解决报错:scp: /Desktop/2.txt: No such file or directory,scp命令远程拷贝文件、文件夹原创 2022-10-15 15:27:50 · 1903 阅读 · 1 评论 -
解决报错:ssh: Could not resolve hostname c: Temporary failure in name resolutionlost connection
使用scp命令从远程Ubuntu服务端拷贝文件至本地Windows客户端,报错ssh: Could not resolve hostname c: Temporary failure in name resolutionlost connection,scp命令远程拷贝文件、文件夹原创 2022-10-15 11:03:56 · 8832 阅读 · 0 评论 -
解决报错ssh: connect to host 192.168.76.128 port 22: Connection refused
Windows用ssh命令远程登录Ubuntu、macOS,解决报错ssh: connect to host 192.168.76.128 port 22: Connection refused原创 2022-10-14 21:51:10 · 2389 阅读 · 0 评论