将python转换为伪Cod

2024-05-18 15:19:05 发布

您现在位置:Python中文网/ 问答频道 /正文

作为一个初学者,我正在努力将这段代码转换成伪代码。有人能帮忙吗?我将非常感激。。。

for i in range (0,len(sentence_split)):
    found = False  
    for j in range (0,len(words)):
        if sentence_split[i] == words [j]:
            found=True
    if found==False:
        words.append(sentence_split[i])

Tags: 代码infalsetrueforlenifrange

热门问题