Code: Alles auswählen
import sys
print sys.argv
Code: Alles auswählen
C:\Users\jbs\Desktop>test.py a b c
['C:\\Users\\jbs\\Desktop\\test.py']
C:\Users\jbs\Desktop>python test.py a b c
['test.py', 'a', 'b', 'c']
C:\Users\jbs\Desktop>test a b c
['C:\\Users\\jbs\\Desktop\\test.py']