【发布时间】:2021-04-16 20:46:45
【问题描述】:
我有一个指向 Python 脚本的 shell 脚本。
脚本.sh
#!/bin/bash
python /folder/script.py
Python 脚本接受一个参数,例如script.py -d 20210107
我尝试使用 script.sh -d 20210107 之类的日期参数运行 shell 脚本,但这不起作用。我需要在我的 shell 脚本中添加一些东西来解决这个问题吗?
【问题讨论】:
标签: python bash shell argparse