feat: Initial commit
This commit is contained in:
11
wordutils.py
Normal file
11
wordutils.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def clean(word: str):
|
||||
a = len(word)
|
||||
|
||||
while True:
|
||||
word = word.strip("()[]{}!?.,<>:;-_`’‘")
|
||||
if a == len(word):
|
||||
break
|
||||
|
||||
a = len(word)
|
||||
|
||||
return word
|
||||
Reference in New Issue
Block a user