def random_comment(): with open('comments.txt', 'r') as f: comments = [line.strip() for line in f] comment = random.choice(comments) return comment
Aucun commentaire:
Enregistrer un commentaire