import sys file_paths = sys.argv[1:] for p in file_paths: print(p) https://www.zhihu.com/question/284443658