2024年4月8日 星期一

資料清理

 d = '''

Tomorrow Will Be Better


When you wake up in the morning

When you haven't started to think

...

...

blow away with the wind

I know you'll do

We pray and believe

that tomorrow will be better.

'''


for i in '.,-※\'\n':

    d = d.replace(i,' ')

for i in d:

    if i >='A' and i<='z' or i in ' ':

        print(i,end='')

沒有留言:

張貼留言