简体   繁体   中英

How to run a simple but long python line. From bat?, py script? or what

That's a single line: python -m aeneas_execute_task D:\\My Documents\\My Videos\\videoplayback.mp3 D:\\My Documents\\My Videos\\videoplayback.txt "task_language=eng|os_task_file_format=json|is_text_type=plain" D:\\My Documents\\My Videos\\map.json

aeneas_execute_task is a python script, aeneas_execute_task.py located in python27\\scripts

I tried from both bat and py script and get invalid syntax This is the site where I got it from: https://github.com/readbeyond/aeneas

Under Usage, number 2 I'm not a developer, so if anybody see something obvious please let me know

您需要将路径名括在引号中,否则它们将被拆分为不同的参数:

python -m aeneas_execute_task "D:\My Documents\My Video\videoplayback.mp3" "D:\My Documents\My Videos\videoplayback.txt" "task_language=eng|os_task_file_format=json|is_text_type=plain" "D:\My Documents\My Videos\map.json"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM