首页 > 解决方案 > Python3.7的参数扫描

问题描述

我试图在 python 中为疾病模拟程序运行参数扫描,但是当我运行这个 bash 程序时,它会导出一个空的文本文件,我的 bash 脚本中是否有错误,或者它是否在我的 python 程序中?

#!/bin/bash

for arg in "$@"
do
    outfile="$arg".txt
    python3.7 diseaseSim.py Y africaMap.csv "$arg" africa.csv > $outfile
done

标签: pythonbash

解决方案


推荐阅读