- 博客(17)
- 收藏
- 关注
原创 Windows版mysql5.7安装教程
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘新密码’;
2024-05-24 17:16:24
125
1
原创 python functools partial , update_wrapper ,wraps
python functools partial , update_wrapper ,wraps
2023-09-20 11:51:18
77
1
原创 django Form,BoundField, ModelForm Field与Form Field类型映射变换 源码分析
django Form,BoundField, ModelForm Field与Form Field类型映射变换 源码分析
2023-03-01 16:11:58
129
原创 python 装饰器 decorator,描述器 descriptor,@property属性,@wrap,update_wrapper
python 装饰器 decorator,描述器 descriptor,@property属性,@wrap,update_wrapper
2022-07-16 21:42:14
225
原创 ssh登录提示 Host key verification failed.
修改服务器配置vim /etc/ssh/sshd_config默认配置不变append选项PermitRootLogin yesPasswordAuthentication yesUseDNS no修改客户端rss-keygen生成RSA秘钥对id_rsaid_rsa.pub使用ftp把id_rsa.pub上传到服务器端后执行cat id_rsa.pub>>~/.ssh/authorized_keys重新链接ssh root@192.168.1.10
2022-05-11 15:46:12
617
原创 vscode debug django,at changed reloading popup the message “python SystemExit 3“
vscode debug django,at changed reloading popup the message "python SystemExit 3"
2022-04-13 04:33:03
859
原创 ValueError: The database backend does not accept 0 as a value for AutoField
comment=models.ForeignKey(‘self’, on_delete=models.CASCADE,default=0)修改default=None。删除最新migrations记录,重新makemigrations。参考https://blog.csdn.net/weixin_33859504/article/details/94456759
2022-03-02 03:49:18
1172
原创 You are trying to add a non-nullable field
You are trying to add a non-nullable fieldYou are trying to add a non-nullable field 'cat' to archive without a default; we can't do that (the database needs something to populate existing rows).Please select a fix: 1) Provide a one-off default now (wil
2022-03-02 03:19:53
1291
原创 python中的元类,静态变量,描述器,__call__函数
元类type是根元类,自定义元类主要重写__new__函数,修改类属性后在return调用type创建修改后的类型。函数也可以作为自定义元类,只需函数签名和__new__相同即可,缺点是不能重写其他元类函数。静态变量定义类时,__init__函数外层的变量即是静态变量也是实例变量,同名变量不同地址。__init__函数内部只是实例变量。当时使用类名直接访问和使用实例名访问的同名变量地址不同。两种变量都可以动态创建,类名动态创建时同时创建两种变量,实例则只创建实例变量。描述器所有声明__s
2022-02-20 21:14:13
337
原创 TypeError: MiniCssExtractPlugin.MiniCssExtractPlugin is not a constructor
webpack TypeError: MiniCssExtractPlugin.MiniCssExtractPlugin is not a constructor
2022-01-17 19:21:01
568
原创 Error C2061 syntax error: identifier ‘PreparedStatement‘
mfc mysql_connection cpp 出现 Error C2061命名空间问题using namespace sql;
2021-06-14 18:25:43
126
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人