SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы
НазадМетки: flask маршрутизация routing python
Используется декоратор route()
@app.route('/')
def index():
return 'Index Page'
@app.route('/hello')
def hello():
return 'Hello, World'
|
string |
(default) accepts any text without a slash |
|
int |
accepts positive integers |
|
float |
accepts positive floating point values |
|
path |
like string but also accepts slashes |
|
uuid |
accepts UUID strings |