Flask Documentation (1.1.x)Code Using _app_ctx_stack Learn from Others Approved Extensions Pocoo Styleguide General Layout Expressions and Statements Naming Conventions Docstrings Comments Upgrading to Newer Releases Version 0.12 be sure to always quote your attributes with either double or single quotes when using Jinja expressions in them: Why is this necessary? Because if you would not be doing self.name = name def get_annoying_name(self): return self.name.upper() + '!!!!111' Expressions and Statements General whitespace rules: No whitespace for unary operators that are not words0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)be sure to always quote your attributes with either double or single quotes when using Jinja expressions in them: Why is this necessary? Because if you would not be doing name): self.name = name def get_annoying_name(self): return self.name.upper() + '!!!!111' 3.6.2 Expressions and Statements General whitespace rules: • No whitespace for unary operators that are not words names: lowercase_with_underscores • Constants: UPPERCASE_WITH_UNDERSCORES • precompiled regular expressions: name_re Protected members are prefixed with a single underscore. Double underscores are reserved0 码力 | 291 页 | 1.25 MB | 1 年前3
共 2 条
- 1
相关搜索词













