python script accepts parameters

 

import os
import sys
print(sys.argv)


bogon:Desktop macname$ python3 test2.py deesws.json dede.json swswsw.json
['test2.py', 'deesws.json', 'dede.json', 'swswsw.json']

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11431297.html