меньше кода - лучше!

This commit is contained in:
Simple_Not
2024-01-23 02:18:50 +10:00
parent e677591b97
commit a58f6c404f
3 changed files with 32 additions and 49 deletions

View File

@@ -4,7 +4,7 @@ import random
def ChangeWord(result): #выбирает рандомное слово для изменения размера пиписы
with open("dicktxt/dick_changes.yaml", 'r') as f:
with open("dicktxt/dick_changes.yaml", 'r', encoding='utf-8') as f:
words = yaml.load(f, Loader=yaml.Loader)
dick_inc = [ f'<b>{w}</b>' for w in words['increment'] ]