Click Documentation Release 4.2.dev0
written to support the Flask microframework ecosystem because no tool could provide it with the function- ality it needed. To get an understanding of what Click is all about, I strongly recommend looking discouraged for high-level usage. A function becomes a Click command line tool by decorating it through click.command(). At its simplest, just decorating a function with this decorator will make it into command() def hello(): click.echo('Hello World!') What’s happening is that the decorator converts the function into a Command which then can be invoked: if __name__ == '__main__': hello() And what it looks0 码力 | 101 页 | 407.32 KB | 1 年前3PlantUML 1.2019.9 Guide de référence du langage
@startuml !unquoted function SALT($x) "{{ salt %invoke_void_func("_"+$x) }}" as $x !endfunction !function _choose() {+ an example choose one option ()one ()two [ok] } !endfunction !function _wait() {+ please wait operation in progress <&clock> [cancel] } !endfunction !function _success() {+ success congratulations! [ok] } !endfunction !function _error() {+ error failed, sorry [ok] } !endfunction (*) and !definelong anymore. Use !function and variable definition instead. !define should be replaced by return function and !definelong should be replaced by void function. • !include now allows multiple0 码力 | 174 页 | 1.93 MB | 1 年前3PlantUML 1.2019.6 Guide de référence du langage
@startuml !unquoted function SALT($x) "{{ salt %invoke_void_func("_"+$x) }}" as $x !endfunction !function _choose() {+ an example choose one option ()one ()two [ok] } !endfunction !function _wait() {+ please wait operation in progress <&clock> [cancel] } !endfunction !function _success() {+ success congratulations! [ok] } !endfunction !function _error() {+ error failed, sorry [ok] } !endfunction (*) finally removed in some long term future). • You should not use !define and !definelong anymore. Use !function and variable definition instead • !include allows now multiple inclusions : you don't have to use0 码力 | 174 页 | 1.91 MB | 1 年前3PlantUML 1.2020.22 Guide de référence du langage
should not use !define and !definelong anymore. Use !function, !procedure or variable defi- nition instead. – !define should be replaced by return !function – !definelong should be replaced by !procedure String (str) - these must be surrounded by single quote or double quote. Variables created outside function are global, that is you can access them from everywhere (including from func- tions). You can emphasize destroyed when the procedure ends. 20.7 Return function [!function, !endfunction] A return function does not output any text. It just define a function that you can call: • directly in variable definition0 码力 | 295 页 | 3.03 MB | 1 年前3PlantUML 1.2020.23 Guide de référence du langage
should not use !define and !definelong anymore. Use !function, !procedure or variable defi- nition instead. – !define should be replaced by return !function – !definelong should be replaced by !procedure String (str) - these must be surrounded by single quote or double quote. Variables created outside function are global, that is you can access them from everywhere (including from func- tions). You can emphasize destroyed when the procedure ends. 20.7 Return function [!function, !endfunction] A return function does not output any text. It just define a function that you can call: • directly in variable definition0 码力 | 308 页 | 3.12 MB | 1 年前3PlantUML 1.2021.1 Guide de référence du langage
should not use !define and !definelong anymore. Use !function, !procedure or variable definition instead. – !define should be replaced by return !function – !definelong should be replaced by !procedure. String (str) - these must be surrounded by single quote or double quote. Variables created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize toString() hashCode() Guide de référence du langage PlantUML (1.2021.1) 342 / 384 24.7 Return function [!function, !endfunction] 24 PREPROCESSEUR !endprocedure $init_class("foo1") $init_class("foo2") $msg("foo1"0 码力 | 385 页 | 4.05 MB | 1 年前3PlantUML 1.2021.2 Guide de référence du langage
should not use !define and !definelong anymore. Use !function, !procedure or variable definition instead. – !define should be replaced by return !function – !definelong should be replaced by !procedure. String (str) - these must be surrounded by single quote or double quote. Variables created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize toString() hashCode() Guide de référence du langage PlantUML (1.2021.2) 348 / 390 25.7 Return function [!function, !endfunction] 25 PREPROCESSEUR !endprocedure $init_class("foo1") $init_class("foo2") $msg("foo1"0 码力 | 391 页 | 4.10 MB | 1 年前3PlantUML 1.2021.3 Guide de référence du langage
should not use !define and !definelong anymore. Use !function, !procedure or variable definition instead. – !define should be replaced by return !function – !definelong should be replaced by !procedure. String (str) - these must be surrounded by single quote or double quote. Variables created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize toString() hashCode() Guide de référence du langage PlantUML (1.2021.2) 363 / 405 25.7 Return function [!function, !endfunction] 25 PREPROCESSEUR !endprocedure $init_class("foo1") $init_class("foo2") $msg("foo1"0 码力 | 406 页 | 4.24 MB | 1 年前3PlantUML 1.2023.11 Guide de référence du langage
variable definition and usage, see more details on Preprocessing-JSON page) Variables created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize $destination !endprocedure Guide de référence du langage PlantUML (1.2023.11) 483 / 533 25.6 Return function [!function, !endfunction] 25 PREPROCESSEUR !procedure $init_class($name) class $name { $addCommonMethod() destroyed when the procedure ends. 25.6 Return function [!function, !endfunction] A return function does not output any text. It just define a function that you can call: • directly in variable definition0 码力 | 534 页 | 7.56 MB | 1 年前3Flask-RESTful Documentation Release 0.3.10
Constructor Parameters Into Resources API Reference If you are looking for information on a specific function, class or method, this part of the documentation is for you. API Docs Api ReqParse Fields Inputs ce_fields, envelope='resource') def get(self, **kwargs): return db_get_todo() # Some function that queries the db This example assumes that you have a custom database object (todo) that has your own custom formatting needs. You can subclass the fields.Raw class and implement the format function. This is especially useful when an attribute stores multiple pieces of information. e.g. a bit-field0 码力 | 42 页 | 84.60 KB | 1 年前3
共 15 条
- 1
- 2