统计单词问题
类型:程序题

题目说明

f=open('/data/        ①        ','r')
text=f.read()
lst=[]
s=""
def judge(        ②        ):
    if st in lst:
        return False
    else:
        return True
for i in range(len(text)):
    c=        ③
    if"a"<=c<="z" or"A"<=c<="Z":
        s=s+c
    else:
        if judge(s):
            lst.append(s)
        s=""
print("出现的不同单词个数为:",len(lst))
代码编辑器 加载中...
留空使用题目默认限制
{{resultStatus.text}}
正在加载运行记录...
乐编题库AI助手
人工客服
微信扫码联系客服
历史对话
{{ s.title || '未命名对话' }}
{{ s.created_at }}
暂无历史对话
我能帮助你什么?