 Tornado 4.5 Documentation
in the right way, or you may have errors that go unnoticed: @gen.coroutine def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 333 页 | 322.34 KB | 1 年前3 Tornado 4.5 Documentation
in the right way, or you may have errors that go unnoticed: @gen.coroutine def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 333 页 | 322.34 KB | 1 年前3
 Tornado 6.0 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 869 页 | 692.83 KB | 1 年前3 Tornado 6.0 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 869 页 | 692.83 KB | 1 年前3
 Tornado 6.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 931 页 | 708.03 KB | 1 年前3 Tornado 6.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 931 页 | 708.03 KB | 1 年前3
 Tornado 4.5 Documentation
coroutines in the right way, or you may have errors that go unnoticed: @gen.coroutine def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 222 页 | 833.04 KB | 1 年前3 Tornado 4.5 Documentation
coroutines in the right way, or you may have errors that go unnoticed: @gen.coroutine def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 222 页 | 833.04 KB | 1 年前3
 Tornado 5.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 243 页 | 895.80 KB | 1 年前3 Tornado 5.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 243 页 | 895.80 KB | 1 年前3
 Tornado 5.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 359 页 | 347.32 KB | 1 年前3 Tornado 5.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 359 页 | 347.32 KB | 1 年前3
 Tornado 6.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 245 页 | 904.24 KB | 1 年前3 Tornado 6.1 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 245 页 | 904.24 KB | 1 年前3
 Tornado 6.0 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 245 页 | 885.76 KB | 1 年前3 Tornado 6.0 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 245 页 | 885.76 KB | 1 年前3
 Tornado 6.4 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 268 页 | 1.09 MB | 1 年前3 Tornado 6.4 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y template.execute(add=add) ### The template {{ add(1, 2) }} We provide the functions escape() python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.2 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y (continues on next page) 62 Chapter 6. Documentation Tornado Documentation, Release 6.2 python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 260 页 | 1.06 MB | 1 年前3 Tornado 6.2 Documentation
coroutines in the right way, or you may have errors that go unnoticed: async def divide(x, y): return x / y def bad_call(): # This should raise a ZeroDivisionError, but it won't because # the coroutine RequestHandler, override RequestHandler.get_template_namespace): ### Python code def add(x, y): return x + y (continues on next page) 62 Chapter 6. Documentation Tornado Documentation, Release 6.2 python for statement. {% break %} and {% continue %} may be used inside the loop. {% from *x* import *y* %} Same as the python import statement. {% if *condition* %}...{% elif *condition* %}...{% else %}0 码力 | 260 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2














