script~20171217-165354.py 156 B

123456
  1. import re, random
  2. with open("wiki.txt", "r") as f:
  3. onomatopees= re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
  4. print(random.choice(onomatopees))