实现上述功能的部分 Python程序如下,请在划线处填入合适的代码。def isprime(n): #判断n是不是素数
for i in range():
if n%i==0:
else:
return True
def strsum(word): #统计单词的字母值总和
dic={"a":1,"b":2,"c":3,"d":4,"e":5,"f":6,"g":7,"h":8,"i":9,"j":10,
"k":11,"l":12,"m":13,"n":14,"o":15,"p":16,"q":17,"r":18,"s":19,
"t":20,"u":21,"v":22,"w":23,"x":24,"y":25,"z":26}
n=0
for ch in word:
return n
word=input("请输入一个单词:")
s=strsum(word)
if flag:
print("这是一个素单词")
else:
print("这不是一个素单词")