题型:综合题 题类: 难易度:困难
浙江省绍兴市会稽联盟2023-2024学年高二下学期信息技术期中考试试卷
m = int(input("请输入内存容量:"))
s = input("请输入英语句子:")
dic = {}
head = tail = 0
word = ""
for ch in s:
if ch == " " or ch == "," or ch == ".":
if word not in dic or dic[word] < head:
if tail - head == m:
dic[word] = tail
tail + = 1
word = ""
else:
if :
ch = chr(ord(ch) + 32)
word += ch
print("需要去外存查找",,"次词典")
试题篮