编程设计
python之使用 py.test 时,如何使应用程序包可用于测试
假设我正在编写一个测试。显然它正在测试我的应用程序,所以我需要以某种方式将应用程序包导入到测试脚本中。目录结构是这样的: root/...
2年前 (2025-05-04) 9 编程设计
python之如何在不重启的情况下打开Arduino串口
我正在编写一个与 Arduino 通信的 python 脚本。每次我关闭 python 脚本并再次打开它时,Arduino 都会重新启动。那是因为...
2年前 (2025-05-04) 111 编程设计
python之使用 Pandas 比较列值并根据比较列中的值创建列
我对 python 和 pandas 很陌生。我将以下示例 CSV 作为输入。 ID Name Activity 1 AB...
2年前 (2025-05-04) 10 编程设计
python之无法打开需求文件 : [Errno 2] No such file or directory: './requirements.txt' Python on Mac
我正在尝试使用这个 code来自 github。 启动它的前三个命令是: pip install bitfinex bitf...
2年前 (2025-05-04) 105 编程设计
python之在 Windows 中安装 scipy 包
我想安装 scipy 包,我知道这是一个重复的问题,但我已经尝试了所有这些包,但没有找到合适的解决方案。 写这个的时候:import scipy...
2年前 (2025-05-04) 17 编程设计
python之分组所有测试 Python
我有 2 个模块:test1.py 和 test2.py。 test1.py import unittest class Ari...
2年前 (2025-05-04) 11 编程设计
python之无法在 Windows 10 : Errors in zbar. h 上为 Python 2.7.9 安装 ZBar
我正在尝试在我的计算机上安装 ZBar,从命令窗口(以管理员身份)运行 pip install zbar。但是,我不断收到以下错误: zb...
2年前 (2025-05-04) 11 编程设计
Python 键错误 : '\n'
我使用下面的脚本从 fastq 文件中提取分子条形码。但是,我不断收到以下关键错误。 File "extractMolecularBar...
2年前 (2025-05-04) 9 编程设计
python之使用 Python 将 Pandas 数据框剪切为 shapefile
我有一个包含大量点的纬度和经度数据的 Pandas 数据框,我想将它们剪辑到一个 shapefile 中;即:shapefile 边界之外的所有内...
2年前 (2025-05-04) 14 编程设计
python之使用 Flask 脚本在 gunicorn 上进行 Flask 部署
我的 Flask 开发服务器上有工作正常的 Flask 应用程序。现在我想更进一步,使用 gunicorn 部署它,我有以下代码,我可以在其中启动...
2年前 (2025-05-04) 13 编程设计

