Подскажите пожалуйста, где я не прав?
#!/usr/bin/python3 import os os.system('cls' if os.name == 'nt' else 'clear') import random rnd = random.randint(1000,9999) # Создаем переменную с помощью генератора случайных чисел w_temp_file = open('/tmp/rnd', 'tw', encoding='utf-8') # Создаем временный файл с переменной 'rnd' r_temp_file = open('/tmp/rnd').read() # Переменная для чтения данных, с последующей передачей в другой файл nik_f = open('/etc/squid/lists/deny_list.txt', 'w') # Файл блокировок для Ника our_f = open('/etc/squid/lists/BlackList.txt', 'w') # Общий файл блокировок nik_ = '/etc/squid/lists/deny_list.txt' our_ = '/etc/squid/lists/BlackList.txt' ''' Данный цикл, позволяем добавить одну или несколько строк во временный файл ''' count = 1 while count <= 2: os.system('cls' if os.name == 'nt' else 'clear') print('============================================================================') print('|| ||') print('|| Вас приветствует мастер добавления web-ресурсов в файлы блокировок ||') print('|| ||') print('============================================================================') answer = input('Введите имя сайта' + '\n') w_temp_file.write("answer") count = int(input('Повторить? 1 - Да, 2 - Нет' + '\n')) if count == 1: continue elif count == 2: w_temp_file.close() break print(r_temp_file) ''' Этот цикл, позволяет выбрать, в какой файл блокировок добавить содержимое, созданного ранее, временного файла ''' count = int(input(''' Выбираем, в какой файл будем писать: 1 - Для Ника 2 - Общий 3 - Выход ''')) while count <= 3: if count == 1: nik_f.write("r_temp_file") nik_f.close() print("Запись произведена в файл - " + "nik_") elif count == 2: our_f.write("r_temp_file") our_f.close() print("Запись произведена в файл - " + "our_") elif count == 3: #count = 3 exit(0)