TaskB00 and TaskB01 were edited

This commit is contained in:
IgnBys 2023-11-08 19:00:27 +01:00
parent a9af5e8bc2
commit 46ec84e1ee
4 changed files with 15 additions and 13 deletions

View File

@ -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:

View 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

View File

@ -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:

View File

@ -1,4 +1,4 @@
YES
сYES
NO
YES
NO