在目录中运行所有Python文件的最佳方法是什么?
python *.py
只执行一个文件.在shell脚本(或make文件)中为每个文件写一行似乎很麻烦.我需要这个b/c我有一系列小的matplotlib脚本,每个脚本创建一个png文件,并希望一次创建所有图像.
PS:我正在使用bash shell.
python bash matplotlib
bash ×1
matplotlib ×1
python ×1