Command Line Arguments Flashcards

1
Q

Welcher import ist nötig?

A

import sys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you use a command line argument?

A

sys.argv[0] or sys.argv[1]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Check number of command line arguments?

A

len(sys.argv)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly