init-commit

This commit is contained in:
lilinyang 2025-05-23 15:27:15 +08:00
commit 18a552597a
3461 changed files with 1150579 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import random
with open('./internbootcamp/libs/data/words_alpha_370000.txt', 'r') as f:
words = f.readlines()
words = [w.strip() for w in words]
def random_word():
w = random.choice(words)
while len(w) < 3:
w = random.choice(words)
return w
if __name__ == '__main__':
print(random_word())