如何在 argparse 中添加带空白的参数
How to add params with blank in argparse
我尝试在 terminal.But 中显示电影信息 遇到一些问题是我无法输入 'rottentomatoes top gun' 我如何编辑代码以在终端中获取多个参数。
这是我的 github 回购:https://github.com/Ray0907/movie/
您应该在 shell 中引用电影名称,以便将其作为一个参数传递给脚本:
rottentomatoes 'top gun'
我尝试在 terminal.But 中显示电影信息 遇到一些问题是我无法输入 'rottentomatoes top gun' 我如何编辑代码以在终端中获取多个参数。
这是我的 github 回购:https://github.com/Ray0907/movie/
您应该在 shell 中引用电影名称,以便将其作为一个参数传递给脚本:
rottentomatoes 'top gun'