python输入逗号分隔_使用示例显示输入到python函数的输入,该输入不以逗号分隔吗?...

用户在尝试运行README.md中提供的代码示例时遇到了问题。他们试图通过终端执行`simscene.py`,但系统无法识别该命令。尽管能够通过导入在另一个脚本中运行`simscene`函数,但在调用参数和启动脚本交互方面遇到了困难。用户需要指导如何正确运行带有指定输入的示例以及如何在PyCharm中执行这些命令。
摘要由CSDN通过智能技术生成

我试图获取一些在网上找到的代码,以使用README.md文件中给出的用法示例。这些工具的目的是从单独的事件中合成音频场景。我不知道如何运行给出的用法示例,这些示例是:

* ./simscene.py -h

Displays command line syntax and option descriptions.

* ./simscene.py example/sound/ output/ 10 -e example/forest_events.xls -b example/forest_backgrounds.xls -N 10 -v

Creates wavefiles and plots of 10 instances of scenes for which events are described in example/forest_events.xls and

background sounds in example/forest_backgrounds.xls

我尝试在终端上运行这些行(我正在使用PyCharm),但是错误是即使我尝试运行“ simscene,也无法将“ simscene.py识别为内部或外部命令,可操作程序或批处理文件”。 .py”,而没有任何输入。

I've been able to get the function simscene to run from another script by importing it, but then run into errors. It looks like the file simscene.py uses lines of argparse to prompt the user, but I can't seem to activate these prompts to start running.

使用示例如何将指定的输入中继到函数,以及如何运行使用示例?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值