摘要: 模板继承报错: extends 'base/base.html'> must be the first tag in the template base.html如下: <!-- {% load static %} {{name}} <img src="{% static "images/test. 阅读全文
posted @ 2020-05-30 12:58 JohnYang819 阅读(1427) 评论(0) 推荐(1) 编辑
摘要: git 默认中文文件名是 \xxx\xxx 等八进制形式,是因为 对0x80以上的字符进行quote。 只需要设置core.quotepath设为false,就不会对0x80以上的字符进行quote。中文显示正常 阅读全文
posted @ 2020-05-25 14:33 JohnYang819 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1.django向数据库中添加中文时报错 解决方案:创建数据库的时候设置编码格式 2.django的信号使用无法触发信号里的内容 解决方案:在django 1.7后,使用信号时候需要在应用配置类中的ready() 方法中连接。 所以我们需要配置先ready() 需要在以下两个地方写入配置 需要在项目 阅读全文
posted @ 2020-05-25 13:14 JohnYang819 阅读(971) 评论(0) 推荐(0) 编辑
摘要: Advanced pandas Categorical Data This section introduces the pandas type.Using it will achieve better performance and memory use in some pandas operat 阅读全文
posted @ 2020-05-24 00:33 JohnYang819 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1.过滤机制 所谓过滤机制,就是选择集的规则,过滤器列表由成对的参数组成。第一个参数标识过滤器的类型(例如对象),第二个参数指定要过滤的值(例如圆)。过滤器类型是指定使用哪种过滤器的 DXF 组码。 有关 DXF 组码的完整列表,请参见《DXF 参考手册》中的“组码值类型”(https://gith 阅读全文
posted @ 2020-05-22 01:01 JohnYang819 阅读(1062) 评论(0) 推荐(0) 编辑
摘要: 1.首先在Vs Code的terminal中输入: py 3 m venv .venv .venv\scripts\activate 2.一般报错如下: 3.解决方法: 第一步:以管理员身份运行powershell (必须管理员身份方法:https://jingyan.baidu.com/artic 阅读全文
posted @ 2020-05-13 01:22 JohnYang819 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 系统学习Sympy 什么是Sympy Sympy 是一个可以进行符号运算的第三方科学计算库,数学对象可以被精确的表达,而不是近似值,这也意味着带有未计算的未知量可以以符号的形式留在数学表达式中。 sqrt(3) python sympy.init_printing(use_unicode=True) 阅读全文
posted @ 2020-05-11 12:19 JohnYang819 阅读(4875) 评论(0) 推荐(1) 编辑
摘要: 在pandas中,两个DataFrame的差集并没有直接的库内置方法,现在我们希望有一种方法,就像python中set内置的求差集一样,来找到两个DataFrame的差集。 >>> a=set((1,2,3)) >>> a {1, 2, 3} >>> b=set((2,3,4)) >>> b {2, 阅读全文
posted @ 2020-05-08 11:12 JohnYang819 阅读(12005) 评论(0) 推荐(0) 编辑
摘要: Time Series Date and Time data types and tools datetime.datetime(2020, 5, 5, 9, 51, 27, 686891) (2020, 5, 5) datetime.time(9, 51, 27, 686891) stores b 阅读全文
posted @ 2020-05-05 13:23 JohnYang819 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Qt Designer 设计界面: 在高清屏未设置AA_EnableHighDpiScaling的预览界面:布局字体控件尺寸上明显存在偏差. 设置了AA_EnableHighDpiScaling的预览界面:运行后,与designer界面一致 from PyQt5.QtWidgets import Q 阅读全文
posted @ 2020-05-04 09:14 JohnYang819 阅读(4368) 评论(0) 推荐(1) 编辑