编程设计
python之检查是否需要合并迁移,没有数据库
要检查是否需要合并迁移,我可以运行 manage.py makemigrations --check 或 manage.py makemigrat...
2年前 (2024-10-01) 6 编程设计
python之Django:动态模型字段和迁移
我无法理解 Django 模型字段的工作原理。我想要实现的是类似于 PriceField (DecimalField) 的东西,它动态创建/注入(...
2年前 (2024-10-01) 41 编程设计
python之TypeError : 'module' object is not callable
我想使用 rq_scheduler我的应用程序中的库,这是我的代码: import telepot import sys import...
2年前 (2024-10-01) 6 编程设计
Python3 安装与 nix 困惑 PATH
我在 Debian 9 上安装了 Python 3.6 nix-env -i python3-3.6.2 但是现在我的 pyt...
2年前 (2024-10-01) 13 编程设计
python之Python 中的磅和盎司
我刚开始学习编码,但在尝试将磅换算为盎司时遇到了问题。我们假设允许用户输入他们的数据,例如 6 磅 2 盎司。我现在被困住了,我什至不确定我是否正...
2年前 (2024-10-01) 6 编程设计
python之索引错误 : list index out of range: I can uderstand why this error happens
我得到一个错误 IndexError: list index out of range。 我想将字典数据放入 model(User) 。 我写了...
2年前 (2024-10-01) 24 编程设计
python之尝试将预测张量四舍五入到最接近的整数时,Keras 成本函数错误
我在倒数第二层使用 sigmoid 激活,然后在最后一层使用 tf.images.resize_images() 调整大小。 目标张量的...
2年前 (2024-10-01) 6 编程设计
Python 矩阵之将矩阵限制在前 20 名
我有一个矩阵,用于计算我通过我创建的 DF 中的这段代码所做的两组学科之间的链接数: new_df = df[['GrantRefNumb...
2年前 (2024-10-01) 6 编程设计
python之tkinter.TclError : character U+1f449 is above the range (U+0000-U+FFFF) allowed by Tcl 错误
我正在尝试使用 tweepy 在 Tkinter 窗口上显示我的 Twitter 时间线。这是代码 import tweepy impo...
2年前 (2024-10-01) 7 编程设计

