摘要: 在Python中一切都是对象。 Python中对象包含的三个基本要素,分别是:1. id(身份标识)2. type(数据类型)3. value(值)对象之间比较是否相等可以用 == ,也可以用 is 。is 和 == 都是对对象进行比较判断作用的,但对对象比较判断的内容并不相同。下面来看看具体区别在 阅读全文
posted @ 2022-06-19 15:46 emanlee 阅读(343) 评论(0) 推荐(0)
摘要: python中 * 是非常常见的一个运算符,它主要有以下几个功能: 乘法运算符; 函数形参表示可变参数; 函数实参代表tuple; 序列解包为tuple; zip解包运算;乘法运算符在Python中,* 表示乘法,** 表示次方。 形参*在python中做函数形参,可以表示一个可变长度的序列,不过是 阅读全文
posted @ 2022-06-19 15:43 emanlee 阅读(984) 评论(0) 推荐(0)
摘要: python manage.py dbshell CommandError: You appear not to have the ‘mysql’ program installed or on your path. 找到 Mysql 所在的文档夹的 bin 目录,添加至系统环境变量的 Path 即 阅读全文
posted @ 2022-06-19 15:37 emanlee 阅读(320) 评论(0) 推荐(0)
摘要: ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine已建立的连接已被主机中的软件中止 可能的原因: 超时或其他网络级错误. 阅读全文
posted @ 2022-06-19 15:36 emanlee 阅读(3280) 评论(0) 推荐(0)
摘要: 出现问题: Not Found: /static/admin/css/login.css Not Found: /static/admin/css/dashboard.css Not Found: /static/admin/css/base.css Not Found: /static/admin 阅读全文
posted @ 2022-06-19 15:35 emanlee 阅读(1235) 评论(0) 推荐(0)
摘要: python.exe .\manage.py makemigrations No changes detected后面加上 app的名称,如下 app 名称为user python.exe .\manage.py makemigrations user python.exe .\manage.py 阅读全文
posted @ 2022-06-19 15:33 emanlee 阅读(84) 评论(0) 推荐(0)
摘要: >>> import sys>>> print(sys.getdefaultencoding())utf-8>>> print(sys.getfilesystemencoding())utf-8>>> 阅读全文
posted @ 2022-06-19 15:32 emanlee 阅读(45) 评论(0) 推荐(0)