我想将两个变量传递给os.system(),例如列出特定目录中不同格式的文件,如(ls -l testdirectory),其中switch和test目录都是可变的.我知道单变量这个有效:
option=l os.sytem('ls -%s' option)
但我不知道如何传递两个变量?
python os.system
os.system ×1
python ×1