Tornado 6.5 Documentationinitialize. Finally, the URLSpec may have a name, which will allow it to be used with RequestHandler.reverse_url. For example, in this fragment the root URL / is mapped to MainHandler and URLs of the form MainHandler(RequestHandler): def get(self): self.write('link to story 1' % self.reverse_url("story", "1")) class StoryHandler(RequestHandler): def initialize(self, db): self.db = db alias for handler.static_url • xsrf_form_html: alias for handler.xsrf_form_html • reverse_url: alias for Application.reverse_url • All entries from the ui_methods and ui_modules Application settings • Any0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationinitialize. Finally, the URLSpec may have a name, which will allow it to be used with RequestHandler.reverse_url. For example, in this fragment the root URL / is mapped to MainHandler and URLs of the form def get(self): self.write('link to story 1' % self.reverse_url("story", "1")) class StoryHandler(RequestHandler): def initialize(self, db): self static_url: alias for handler.static_url xsrf_form_html: alias for handler.xsrf_form_html reverse_url: alias for Application.reverse_url All entries from the ui_methods and ui_modules Application settings Any keyword0 码力 | 437 页 | 405.14 KB | 3 月前3
julia 1.10.10example composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9example composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4example composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationexample composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesexample composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVexample composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1example composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4example composes three functions and maps the result over an array of strings: julia> map(first ∘ reverse ∘ uppercase, split("you can compose functions like this")) 6-element Vector{Char}: 'U': ASCII/Unicode dot vectorization syntax (described below). julia> ["a", "list", "of", "strings"] .|> [uppercase, reverse, titlecase, length] 4-element Vector{Any}: "A" "tsil" "Of" 7 When combining pipes with anonymous collection in reverse order by iterating over Iterators.reverse(iterator). To actually support reverse-order iteration, however, an iterator type T needs to implement iterate for Iterators.Reverse{T}. (Given0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 18 条
- 1
- 2













