# -*- coding: utf-8 -*-
from bottle import *
import json
@get('/get')
def get():
return static_file('aaa.zip', root='.')
run(host='0.0.0.0', port=8080);
访问http:\\ip地址:8080\get ,可下载文件aaa.zip
# -*- coding: utf-8 -*-
from bottle import *
import json
@get('/get')
def get():
return static_file('aaa.zip', root='.')
run(host='0.0.0.0', port=8080);
访问http:\\ip地址:8080\get ,可下载文件aaa.zip