# coding=gbk
if __name__ == '__main__':
remotefile = "ABC_ZENG_Z"
retval = remotefile.find("ZENG")
print ("retval = %d" %(retval))
if (retval != -1): #搜索成功
print ("搜索成功")
retval = remotefile.find("ZENGB")
print ("retval = %d" %(retval))
if (retval == -1): #搜索失败
print ("搜索失败")
if __name__ == '__main__':
remotefile = "ABC_ZENG_Z"
retval = remotefile.find("ZENG")
print ("retval = %d" %(retval))
if (retval != -1): #搜索成功
print ("搜索成功")
retval = remotefile.find("ZENGB")
print ("retval = %d" %(retval))
if (retval == -1): #搜索失败
print ("搜索失败")