相关疑难解决方法(0)

运行目录中的所有Python文件

在目录中运行所有Python文件的最佳方法是什么?

python *.py
Run Code Online (Sandbox Code Playgroud)

只执行一个文件.在shell脚本(或make文件)中为每个文件写一行似乎很麻烦.我需要这个b/c我有一系列小的matplotlib脚本,每个脚本创建一个png文件,并希望一次创建所有图像.

PS:我正在使用bash shell.

python bash matplotlib

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

标签 统计

bash ×1

matplotlib ×1

python ×1