小编ere*_*rez的帖子

Jupyter notebook - 无法从其他文件夹导入 python 函数

我有一个 Jupyter 笔记本,我想使用计算机中其他文件夹中的本地 python 函数。当我导入这些函数时,我收到此错误:“ModuleNotFoundError: No module named 'xxxxxxxxxxxxx'

  • 我使用 anaconda 作为 python 解释器

python jupyter-notebook

6
推荐指数
2
解决办法
1万
查看次数

在静默模式下从 CMD 激活 winrar

我正在使用 matlab 并调用 CMD 来运行 winrar 以提取文件。我想在静默模式下进行提取过程 - 意味着看不到进度报告的弹出窗口(附图片)。有任何想法吗?

我尝试使用 -s 或 /s 开关,但没有帮助

谢谢

在此处输入图片说明

matlab cmd winrar

3
推荐指数
1
解决办法
2967
查看次数

python pytest - 如何在其固定方法中获取测试标记?

我在 pytest 中进行了测试,并添加了一些标记,例如:“ @pytest.mark.xfail”,测试有几种固定方法。如何使用夹具方法获取某个测试的所有标记?

pytest python-3.x

3
推荐指数
1
解决办法
4946
查看次数

Python:登录后无法删除文件

我正在使用以下代码写入日志文件:

import logging
from gmplot import gmplot
logging.basicConfig(filename="sample.log", level=logging.INFO)
logging.debug("This is a debug message")
logging.info("Informational message")
logging.error("An error has happened!")
Run Code Online (Sandbox Code Playgroud)

但是这样就不可能删除这个文件了。我怎样才能“释放”这个文件?

python

2
推荐指数
1
解决办法
1092
查看次数

Python pyplot:处理双击事件也会捕获第一个单击事件

我写了一个代码来处理不同的事件 - 鼠标单击和双击。问题是,每次用户双击鼠标时,它也会触发单击,然后触发双击事件。

我希望双击只会触发一个事件!!双击事件。

有什么建议?

谢谢

matplotlib python-3.x

2
推荐指数
1
解决办法
797
查看次数

qgis - 创建层 - 看不到经纬度值

I'm using qgis 3 and generate a lot of layers types, but in any case I don't find the lat lon values of the points. I have tried to use the attributes table calculator (added fields $x and $y but it showed me big value, I guess in meters and not the lat lon).

  • I want to see the lat-lon without using the plugin of lat-lon tools.

qgis

0
推荐指数
1
解决办法
5907
查看次数

标签 统计

python ×2

python-3.x ×2

cmd ×1

jupyter-notebook ×1

matlab ×1

matplotlib ×1

pytest ×1

qgis ×1

winrar ×1