Tornado 6.5 Documentationapp for Tornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ (r"/", MainHandler) you can start another operation before waiting. from tornado.gen import convert_yielded async def get(self): # convert_yielded() starts the native coroutine in the background. # This is equivalent to easier to do with decorated coroutines, because they start immediately when called: @gen.coroutine def get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future if chunk is None:0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 DocumentationTornado: import asyncio import tornado class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([ you can start another operation before waiting. from tornado.gen import convert_yielded async def get(self): # convert_yielded() starts the native coroutine in the background. # This is equivalent to do with decorated coroutines, because they start immediately when called: @gen.coroutine def get(self): fetch_future = self.fetch_next_chunk() while True: chunk = yield fetch_future0 码力 | 437 页 | 405.14 KB | 3 月前3
julia 1.13.0 DEVCommand-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1Command-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4Command-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3Command-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.11.4Command-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationCommand-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesCommand-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that The advantage over including this code in the try block instead is that any further errors don't get silently caught by the catch clause. local x try x = read("file", String) catch # handle read0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.10.10Command-line Interface. 2.1 Resources A curated list of useful learning resources to help new users get started can be found on the learning page of the main Julia website. You can use the REPL as a learning julia> 1 - 2 -1 julia> 3*2/12 0.5 (By convention, we tend to space operators more tightly if they get applied before other nearby operators. For instance, we would generally write -x + 2 to reflect that as f. As an example, consider this call to get: get(dict, key) do # default value calculated here time() end The code above is equivalent to calling get with an anonymous function containing the code0 码力 | 1692 页 | 6.34 MB | 3 月前3
共 34 条
- 1
- 2
- 3
- 4













