This commit is contained in:
Pavel_Duron 2022-12-16 22:20:11 +10:00
parent 9c91fc5420
commit 23328de316

View File

@ -1,7 +1,7 @@
import random import random
def RandomDick(): def RandomDick():
with open('dicktxt\dick_sinonims.txt', 'r', encoding='utf-8') as file: with open('dicktxt/dick_sinonims.txt', 'r', encoding='utf-8') as file:
words = file.readlines() words = file.readlines()
random_line = random.choice(words).strip() random_line = random.choice(words).strip()