python 查重复

dict ={}
def adjRepeat(fldVal,id):
if fldVal=="":
retrun ""
temp=0
strVal=""
if dict.has_key(fldVal)==True:
temp=dict[fldVal]
strVal=str(temp)+"chongfu"
return strVal
else:
dict[fldVal] =id
return ""
用10.1运行 这个报错 查不出原因 求教
已邀请:

indexhe

赞同来自:

dict ={}
def adjRepeat(fldVal,id):
if fldVal=="":
retrun ""
temp=0
strVal=""
if dict.has_key(fldVal)==True:
temp=dict[fldVal]
strVal=str(temp)+"chongfu"
return strVal
else:
dict[fldVal] =id
return ""

zsf - SGG

赞同来自:

这里只有函数,没看到数据和调用,错误提示是什么?

要回复问题请先登录注册