这两个使用git的语句有什么区别?
@app.route("/upload", methods=['POST'])
def upload():
target = os.path.join(APP_ROOT, 'images/')
if not os.path.isdir(target):
os.mkdir(target)
#request.files.getlist(files)
for file in request.files.getlist("file"):
print(file)
filename = file.filename
destination = "/".join([target, filename])
print(destination)
file.save(destination)
return "complete.html"
有区别吗?