Click Documentation
Release 4.2.dev0written 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 however can be implemented on a higher level to support things such as explicit aliases. For more information see Command Aliases. 1.2 Quickstart You can get the library directly from PyPI: pip install click together with readme files: • inout: File input and output • naval: Port of docopt naval example • aliases: Command alias example • repo: Git-/Mercurial-like command line interface • complex: Complex example0 码力 | 101 页 | 407.32 KB | 1 年前3
PlantUML 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 年前3
PlantUML 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 年前3
PlantUML 1.2020.22 Guide de référence du langageshould 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 URL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have 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 emphasize0 码力 | 295 页 | 3.03 MB | 1 年前3
PlantUML 1.2020.23 Guide de référence du langageshould 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 URL, so you don't need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have 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 emphasize0 码力 | 308 页 | 3.12 MB | 1 年前3
PlantUML 1.2021.1 Guide de référence du langageshould 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. URL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have 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 this by using the optional global keyword0 码力 | 385 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.2 Guide de référence du langageshould 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. URL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have 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 this by using the optional global keyword0 码力 | 391 页 | 4.10 MB | 1 年前3
PlantUML 1.2021.3 Guide de référence du langageshould 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. URL, so you don’t need !includeurl • Some features (like %date%) have been replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have 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 this by using the optional global keyword0 码力 | 406 页 | 4.24 MB | 1 年前3
Flask-RESTful Documentation Release 0.3.10Constructor 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 cannot be converted to int'} The inputs module provides a number of included common conversion functions such as inputs.date() and inputs.url(). Calling parse_args with strict=True ensures that an error 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 has0 码力 | 42 页 | 84.60 KB | 1 年前3
PlantUML 1.2023.11 Guide de référence du langagestart a project, a task or a milestone a number of days before or after today, using the builtin functions %now and %date: @startgantt title Today is %date("YYYY-MM-dd") !$now = %now() !$past = %date("YYYY-MM-dd" on Preprocessing-JSON page) Variables created outside function are global, that is you can access them from everywhere (including from functions). You can emphasize this by using the optional global keyword Boolean builtin functions [%false(), %true(), %not()] For convenience, you can use those boolean builtin functions: • %false() • %true() • %not( ) [See also Builtin functions] 25.3 Conditions 0 码力 | 534 页 | 7.56 MB | 1 年前3
共 19 条
- 1
- 2













