arnold/book cipher with python
问题 I'm trying to write a book cipher decoder, and the following is what i got so far. code = open("code.txt", "r").read() my_book = open("book.txt", "r").read() book = my_book.txt code_line = 0 while code_line < 6 : sl = code.split('\n')[code_line]+'\n' paragraph_num = sl.split(' ')[0] line_num = sl.split(' ')[1] word_num = sl.split(' ')[2] x = x+1 the loop changes the following variables: paragraph line word and every thing is working just fine . but what I need now is how to specify the