上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页
摘要: 安装Django3后不想折腾mysqlclient那堆库文件,直接装了pymysql替代mysqlclient,报错:django.core.exceptions.ImproperlyConfigured mysqlclient 1.3.13 or newer is required; you ha 阅读全文
posted @ 2020-06-01 12:45 JohnYang819 阅读(543) 评论(0) 推荐(0)
摘要: 不使用django-admin.py,而是使用django-admin.exe 具体操作如下 django-admin.exe startproject learning_log . ok,没有提示错误。 阅读全文
posted @ 2020-06-01 12:11 JohnYang819 阅读(973) 评论(0) 推荐(0)
摘要: 模板继承报错: 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 阅读(1531) 评论(0) 推荐(1)
摘要: git 默认中文文件名是 \xxx\xxx 等八进制形式,是因为 对0x80以上的字符进行quote。 只需要设置core.quotepath设为false,就不会对0x80以上的字符进行quote。中文显示正常 阅读全文
posted @ 2020-05-25 14:33 JohnYang819 阅读(371) 评论(0) 推荐(0)
摘要: 1.django向数据库中添加中文时报错 解决方案:创建数据库的时候设置编码格式 2.django的信号使用无法触发信号里的内容 解决方案:在django 1.7后,使用信号时候需要在应用配置类中的ready() 方法中连接。 所以我们需要配置先ready() 需要在以下两个地方写入配置 需要在项目 阅读全文
posted @ 2020-05-25 13:14 JohnYang819 阅读(1050) 评论(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 阅读(275) 评论(0) 推荐(0)
摘要: 1.过滤机制 所谓过滤机制,就是选择集的规则,过滤器列表由成对的参数组成。第一个参数标识过滤器的类型(例如对象),第二个参数指定要过滤的值(例如圆)。过滤器类型是指定使用哪种过滤器的 DXF 组码。 有关 DXF 组码的完整列表,请参见《DXF 参考手册》中的“组码值类型”(https://gith 阅读全文
posted @ 2020-05-22 01:01 JohnYang819 阅读(1186) 评论(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 阅读(1037) 评论(0) 推荐(0)
摘要: 系统学习Sympy 什么是Sympy Sympy 是一个可以进行符号运算的第三方科学计算库,数学对象可以被精确的表达,而不是近似值,这也意味着带有未计算的未知量可以以符号的形式留在数学表达式中。 sqrt(3) python sympy.init_printing(use_unicode=True) 阅读全文
posted @ 2020-05-11 12:19 JohnYang819 阅读(5394) 评论(0) 推荐(3)
摘要: 在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 阅读(12221) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 30 下一页