我正在嘗試獲取一些我在網上找到的代碼,以使用 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.py 未被識別為內部或外部命令、可運行程序或批處理文件”,即使我嘗試運行“simscene” .py" 單獨沒有輸入。我已經能夠通過導入功能 simscene 從另一個腳本運行它,但隨后遇到錯誤??雌饋砦募?simscene.py 使用行argparse來提示用戶,但我似乎無法激活這些提示以開始運行。使用示例如何將指定的輸入傳遞給函數,我如何才能運行使用示例?整個項目的鏈接在這里: https://bitbucket.org/mlagrange/simscene/src/master/python/
用法示例顯示未用逗號分隔的 python 函數的輸入?
慕桂英4014372
2023-04-25 16:26:25