第三天学习就妨碍我了,我像看看别人的脑回路

这首诗我的直觉告诉我,应该是列表遍历,但是逗号和句号,我不知道该怎么加了,可我做不出来了,脑子没有想法就像一张白纸,没内容,有的时候我发现编程让我无从下手,总感觉就像是,写作文,开头真难不知道该咋写

img

### 中文逗号句号分割
poems = input('请输入诗歌:')
def func1(poems):
    start = 0
    result = []
    for i in range(len(poems)) :
        if poems[i] in (',','。') :
            result.append(poems[start : i+1])
            start = i+1
    for l in result :
        print(l)
func1(poems)

poem = input('请输入一首诗:')
print(poem)
poem = poem.replace(',', ',\n')
poem = poem.replace('。', '。\n')
print(poem)