像這樣反回序例就是多個值
defget_gitpath():
gitpaths=[]
gitpath=request.args.get('c',0,type=str)
f=open(sys.path[0]+"\\gitpath.txt","r")
lines=f.readlines()
forlineinlines:
line=line.strip('\n')
gitpaths.append(line)
returngitpaths
像這樣反回序例就是多個值
defget_gitpath():
gitpaths=[]
gitpath=request.args.get('c',0,type=str)
f=open(sys.path[0]+"\\gitpath.txt","r")
lines=f.readlines()
forlineinlines:
line=line.strip('\n')
gitpaths.append(line)
returngitpaths