Tornado 6.5 DocumentationWORLD Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def make_app(): generator as the result of the yield expression. Most asyn- chronous code never touches the Future class directly except to immediately pass the Future returned by an asyn- chronous function to a yield expression def remove_fragment(url): pure_url, frag = urldefrag(url) return pure_url def get_links(html): class URLSeeker(HTMLParser): def __init__(self): HTMLParser.__init__(self) self.urls = [] def handle_starttag(self0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationworld Here is a simple “Hello, world” example web app for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") generator as the result of the yield expression. Most asynchronous code never touches the Future class directly except to immediately pass the Future returned by an asynchronous function to a yield expression remove_fragment(url): pure_url, frag = urldefrag(url) return pure_url def get_links(html): class URLSeeker(HTMLParser): def __init__(self): HTMLParser.__init__(self)0 码力 | 437 页 | 405.14 KB | 3 月前3
Predictably IrrationalMaintenance, E-mail Experiment: Class paper deadlines Observations: o “We found that the students in the class with the three firm deadlines got the best grade; the class in which I set no deadlines at at all (except for the final deadline) had the worst grades; and the class allowed to choose their own three deadlines (but with penalties for failing to meet them) finished in the middle.” o “What’s0 码力 | 3 页 | 234.46 KB | 5 月前3
Dynamic Model in TVMInc. or its Affiliates. All rights reserved. Data structure class SpecializedConditionNode : public Node { Arrayconditions; }; class OpImplementNode : public relay::ExprNode { FTVMCompute fcompute; SpecializedCondition condition; // optional }; class OpStrategyNode : public relay::ExprNode { OpImplement default_implement; Array specialized_implements; }; class OpStrategy : public relay::Expr { 0 码力 | 24 页 | 417.46 KB | 5 月前3
Julia 1.11.4must be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationmust be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesmust be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.12.0 RC1must be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4must be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3must be written as +ᵃ x to distinguish it from + ᵃx where ᵃx is the variable name. A particular class of variable names is one that contains only underscores. These identifiers are write-only. I.e. they mathematical functions and operators. These mathematical operations are defined over as broad a class of numerical values as permit sensible definitions, including integers, floating-point numbers, rationals accept any string type. • Like C and Java, but unlike most dynamic languages, Julia has a first-class type for representing a single character, called AbstractChar. The built-in Char subtype of AbstractChar0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 23 条
- 1
- 2
- 3













