python-3.x - 如何使用 for 循环运行多个解析 python 代码?
问题描述
我是python社区的初学者。我想通过在命令行(mac终端)中使用for循环来运行解析python代码从现在开始我已经在命令行中运行了。
“python3 xxxx.py --iter 1000 --outdir xxxx/xxxx/xxxx/xxxx”
但是,它只能具体一点。
所以我想通过使用 for 循环将 iter 1000 更改为 10000 (1000, 2000, 3000, ..., 10000) 来运行。例如,
“python3 xxxx.py --iter 1000 --outdir xxxx/xxxx/xxxx/xxxx”
“python3 xxxx.py --iter 2000 --outdir xxxx/xxxx/xxxx/yyyy”
“python3 xxxx.py --iter ....--outdir xxxx/xxxx/xxxx/....”
“python3 xxxx.py --iter 10000 --outdir xxxx/xxxx/xxxx/zzzz”
像那样。
我能做些什么..?请给我一些意见或解决方案。谢谢。
解决方案
推荐阅读
- specman - Specman e:如何使用预定义的 sequence.item?
- kubernetes - Kubernetes Worker 节点处于 NotReady 状态
- r - 将数据框的一列转置为多行,同时保留 ID
- node.js - IP 地址返回两个值,需要检查是否为 IPv4 格式
- c# - 如何从 IMAP 服务器获得完整响应
- javascript - 在下面创建一个网页,用于存储(设置)、获取和删除数据:
- python - Numpy:可以分解大小不等的多维数组吗?
- android - 如何在一段时间内禁用按钮的 onClick() 事件?
- java - cucumber.json 报告被重新运行方案报告覆盖
- python - 在 django 中使用现有的 sqlite3 数据库