count = 0 for name in algorithList: if not "." in name: # Name #是否有Demo #dataPath dfResult.loc[count] = [name, whetherDemo(name),rootPath + '/' + name]