from collections import Counter
задание = "АРОКСИЛИРОВАНИЕ".lower()
длина = 7
counter_задание = Counter(задание)
with open('D:\\Program Files\\Text\\слова\\1.txt', 'r') as f:
filtered_words = (word.strip() for word in f if длина <= len(word.strip()) <= len(задание))
результат = [word for word in filtered_words if Counter(word) <= counter_задание]
Memo1.Lines.Add('Ответ от '+
IntToStr(LoByte(LoWord(pIpe^.Address)))+'.'+
IntToStr(HiByte(LoWord(pIpe^.Address)))+'.'+
IntToStr(LoByte(HiWord(pIpe^.Address)))+'.'+
IntToStr(HiByte(HiWord(pIpe^.Address))));
import mysql.connector
from mysql.connector import connect, Error
try:
with connect(
host='localhost',
user=SQLUSER,
password=SQLPASS,
database=SQLBASE
) as connection:
print(connection)
except Error as e:
print(e)