python-3.x - 使用“超时”批处理命令运行带有 args 的 python
问题描述
为了从 cmd 文件运行 python,我只需要运行:
python file_name.py
为了添加超时,正如这里建议的那样,我们应该只做这样的事情:
timeout time_in_secs python file_name.py
但是如何运行带有 args 的 python 之类的东西呢?
timeout time_in_secs python file_name.py --cli_arg="cli_arg"
解决方案
推荐阅读
- javascript - 有没有办法在单击某个链接时自动打开选项卡?
- javascript - 如何制作一个完整的可选择的?
- c - 动态分配的多维数组
- sql - 关于Oracle SQL的优化(分组)
- android-studio - android profiler 如何查看调用图表
- java - QueryDSL fetch 加入没有 groupby 的请求 GROUP BY
- python - 从字符串中删除重复的字母
- node.js - 如何使用 Bluebird 承诺修复“分页中未定义的响应”(@google-cloud)
- javascript - Firebase/数据库 + 径向 Btn + JS
- python - 在 Python/Selenium 中创建登录和注销循环