Python arguments passed with quotes
问题 I'm trying to pass file list to my python script via argument: python script.py -o aaa -s bbb "filename.txt" "filename2.txt" "file name3.txt" Unfortunately ArgumentParser is ignoring quotes and instead of giving list of 3 files it gives me list of 4 elements as followed: 1) "filename.txt" 2) "filename2.txt" 3) "file 4) name3.txt" It completely ignores quotes. How to make it work with quotes? 回答1: Hard without seeing what you're using or any code. Your shell may be interfering, you may need to