Don't force args
This commit is contained in:
parent
703341f267
commit
0232d6c038
1 changed files with 6 additions and 3 deletions
|
@ -9,9 +9,12 @@ import sys
|
|||
|
||||
|
||||
def main():
|
||||
assert len(sys.argv) == 3
|
||||
a = int(sys.argv[1])
|
||||
b = int(sys.argv[2])
|
||||
if len(sys.argv) == 3:
|
||||
a = int(sys.argv[1])
|
||||
b = int(sys.argv[2])
|
||||
else:
|
||||
a = int(input("a : "))
|
||||
b = int(input("b : "))
|
||||
|
||||
# Initialisation
|
||||
r = ["r", a, b]
|
||||
|
|
Loading…
Reference in a new issue