python学习
This commit is contained in:
1
web/__init__.py
Normal file
1
web/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
1
web/controllers/__init__.py
Normal file
1
web/controllers/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
8
web/controllers/index.py
Normal file
8
web/controllers/index.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from flask import Blueprint
|
||||
|
||||
route_index = Blueprint( 'index_page',__name__ )
|
||||
|
||||
@route_index.route("/")
|
||||
def index():
|
||||
return "Hello World"
|
||||
Reference in New Issue
Block a user