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运行 这个报错 查不出原因 求教
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运行 这个报错 查不出原因 求教
2 个回复
indexhe
赞同来自:
zsf - SGG
赞同来自:
要回复问题请先登录或注册
发起人
相关问题
问题状态
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!