I have a question about the deletion and separation of sentences in Python text

Asked 2 years ago, Updated 2 years ago, 15 views

with open('./Text/The Little Prince.txt', 'rt', encoding='UTF8') as prince:
    text = prince.read().replace('\n', ' ').replace('  ', ' ')

python

2022-09-20 11:39

1 Answers

Number 2 can be a stack, and number 3 can be separated from #


2022-09-20 11:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.