commited all contents created by participants
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import re, random
|
||||
|
||||
with open("wiki.txt", "r") as f:
|
||||
onomatopees= re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
|
||||
|
||||
print(random.choice(onomatopees))
|
||||
@@ -0,0 +1,6 @@
|
||||
import re
|
||||
|
||||
with open("wiki.txt", "r") as f:
|
||||
onomatopees = re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
|
||||
onomatopees =
|
||||
print(" ".join(onomatopees))
|
||||
@@ -0,0 +1,6 @@
|
||||
import re
|
||||
|
||||
with open("wiki.txt", "r") as f:
|
||||
onomatopees = re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
|
||||
onomatopees = [for o in onomatopees: o.lower()]
|
||||
print(" ".join(onomatopees))
|
||||
@@ -0,0 +1,6 @@
|
||||
import re
|
||||
|
||||
with open("wiki.txt", "r") as f:
|
||||
onomatopees = re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
|
||||
onomatopees = [o.lower() for o in onomatopees]
|
||||
print(" ".join(onomatopees))
|
||||
@@ -0,0 +1,7 @@
|
||||
import re
|
||||
from random import shuffle
|
||||
with open("wiki.txt", "r") as f:
|
||||
onomatopees = re.findall(r"''([\w\s]+)''", f.read(), flags=re.M)
|
||||
onomatopees = [o.lower() for o in onomatopees]
|
||||
shuffle(onomatopees)
|
||||
print(" ".join(onomatopees))
|
||||
Reference in New Issue
Block a user