TaskB00 and TaskB01 were edited
This commit is contained in:
parent
a9af5e8bc2
commit
46ec84e1ee
@ -9,12 +9,12 @@ def find_next_position(position, character):
|
||||
if position == line[0] and character == line[2]:
|
||||
return True,line[1]
|
||||
|
||||
used_table = 'fsa_description.arg'
|
||||
input_file = 'test1.in'
|
||||
output_file = 'test1.out'
|
||||
# used_table = sys.argv[1]
|
||||
# input_file = sys.argv[2]
|
||||
# output_file = sys.argv[3]
|
||||
# used_table = 'fsa_description.arg'
|
||||
# input_file = 'test1.in'
|
||||
# output_file = 'test1.out'
|
||||
used_table = sys.argv[1]
|
||||
input_file = sys.argv[2]
|
||||
output_file = sys.argv[3]
|
||||
with open(output_file, 'w') as readed_output_file:
|
||||
with open(input_file, 'r') as readed_input_file:
|
||||
for row_input_file in readed_input_file:
|
||||
|
2
TaskB01/READ_HowToRun.txt
Normal file
2
TaskB01/READ_HowToRun.txt
Normal file
@ -0,0 +1,2 @@
|
||||
If you use windows please write this command in terminal:
|
||||
python .\run.py .\fsa_description.arg .\test.in .\test.out
|
@ -9,12 +9,12 @@ def find_next_position(position, character):
|
||||
if position == line[0] and character == line[2]:
|
||||
return True,line[1]
|
||||
|
||||
used_table = 'fsa_description.arg'
|
||||
input_file = 'test.in'
|
||||
output_file = 'test.out'
|
||||
# used_table = sys.argv[1]
|
||||
# input_file = sys.argv[2]
|
||||
# output_file = sys.argv[3]
|
||||
# used_table = 'fsa_description.arg'
|
||||
# input_file = 'test.in'
|
||||
# output_file = 'test.out'
|
||||
used_table = sys.argv[1]
|
||||
input_file = sys.argv[2]
|
||||
output_file = sys.argv[3]
|
||||
with open(output_file, 'w') as readed_output_file:
|
||||
with open(input_file, 'r') as readed_input_file:
|
||||
for row_input_file in readed_input_file:
|
||||
|
@ -1,4 +1,4 @@
|
||||
YES
|
||||
сYES
|
||||
NO
|
||||
YES
|
||||
NO
|
||||
|
Loading…
Reference in New Issue
Block a user