python - 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
解决方案
推荐阅读
- javascript - AMP - 转发页面
- javascript - 语义 UI 表格排序功能不起作用
- go - 如何在 golang 中解开包装的结构?
- javascript - 使用javascript / node js的地图方法在某些地方不起作用
- jquery - 使用 jquery 选择器和 ajax 将表行值传递给控制器
- pip - 参数包的类型
我们无法在 Ansible 中转换为列表错误 - html - 电话输入自动填充删除国际前缀
- mongodb - 如何在 Windows 上设置 MongoDB 日志轮换?
- java - 尝试调用虚拟方法 'void androidx.recyclerview.widget.RecyclerView.setAdapter
- c++ - 不同的输出取决于我是否打印返回值