Flask Property
__class__
__dict__
__doc__
__module__
app_ctx_globals_class
config_class
debug
default_config
error_handlers
get_send_file_max_age
has_static_folder
jinja_environment
jinja_loader
jinja_options
json_decoder
json_encoder
logger_name
open_resource
permanent_session_lifetime
request_class
request_globals_class
response_class
secret_key
send_file_max_age_default
send_static_file
session_cookie_name
session_interface
static_folder
static_url_path
test_client_class
testing
url_rule_class
use_x_sendfile
Flask Method
(classmethod) delattr
(classmethod) format
(classmethod) getattribute
(classmethod) hash
(staticmethod) new
(classmethod) reduce
(classmethod) reduce_ex
(classmethod) setattr
(classmethod) sizeof
(classmethod) str
(classmethod) subclasshook
(classmethod) weakref
(classmethod) inject_url_defaults
(classmethod) iter_blueprints
(setupmethod) register_blueprint
(classmethod) update_template_context
(setupmethod) add_template_filter
(classmethod) jinja_env
(property)propagate_exceptions
(classmethod) open_session
(classmethod) preprocess_request
(classmethod) raise_routing_exception
(setupmethod) before_request
(classmethod) should_ignore_error
(classmethod) init
(classmethod) try_trigger_before_first_request_functions
(classmethod) test_request_context
(setupmethod) url_value_preprocessor
(classmethod) make_config
(property)preserve_context_on_exception
(setupmethod) url_defaults
(classmethod) handle_http_exception
(setupmethod) before_first_request
(classmethod) select_jinja_autoescape
(classmethod) wsgi_app
(classmethod) handle_user_exception
(classmethod) test_client
(classmethod) create_jinja_environment
(classmethod) call
(classmethod) do_teardown_appcontext
(property)logger
(setupmethod) add_template_global
(setupmethod) template_filter
(setupmethod) shell_context_processor
(classmethod) process_response
(classmethod) run
(setupmethod) template_test
(classmethod) handle_url_build_error
(classmethod) do_teardown_request
(staticmethod) _get_exc_class_and_code
(classmethod) create_global_jinja_loader
(setupmethod) errorhandler
(classmethod) log_exception
(setupmethod) context_processor
(classmethod) full_dispatch_request
(setupmethod) teardown_appcontext
(classmethod) register_error_handler
(classmethod) create_url_adapter
(classmethod) make_null_session
(classmethod) init_jinja_globals
(classmethod) _find_error_handler
(classmethod) finalize_request
(classmethod) save_session
(setupmethod) endpoint
(classmethod) name
(classmethod) make_default_options_response
(setupmethod) _register_error_handler
(classmethod) dispatch_request
(setupmethod) add_url_rule
(classmethod) route
(classmethod) open_instance_resource
(classmethod) handle_exception
(classmethod) app_context
(classmethod) make_shell_context
(property)got_first_request
(setupmethod) template_global
(classmethod) repr
(classmethod) make_response
(classmethod) request_context
(classmethod) auto_find_instance_path
(setupmethod) add_template_test
(setupmethod) after_request
(setupmethod) teardown_request
(classmethod) trap_http_exception

Flask版本0.12。

Flask Property

__class__

介绍: 用于存放当前对象实例所属的类型,值是:<class 'flask.app.Flask'>。**注意在未修改__class__的情况下,type(A)=A.class

__dict__

介绍: 用于存放当前对象的所有属性。其内容是本文数据字典的子集。

__doc__

介绍: 保存类的文档字符串。可以通过help函数或者inspect.getdoc(Class)获得。

__module__

介绍: 类所属的模块。

app_ctx_globals_class

介绍:

config_class

介绍:

debug

介绍:

default_config

介绍:

error_handlers

介绍:

get_send_file_max_age

介绍:

has_static_folder

介绍:

jinja_environment

介绍:

jinja_loader

介绍:

jinja_options

介绍:

json_decoder

介绍:

json_encoder

介绍:

logger_name

介绍:

open_resource

介绍:

permanent_session_lifetime

介绍:

request_class

介绍:

request_globals_class

介绍:

response_class

介绍:

secret_key

介绍:

send_file_max_age_default

介绍:

send_static_file

介绍:

session_cookie_name

介绍:

session_interface

介绍:

static_folder

介绍:

static_url_path

介绍:

test_client_class

介绍:

testing

介绍:

url_rule_class

介绍:

use_x_sendfile

介绍:

Flask Method

(classmethod) delattr

介绍:删除属性attr;内建函数self.delattr(attr)时被调用。

(classmethod) format

介绍: 格式化字符串的输出.

(classmethod) getattribute

介绍: 访问Flask的属性时调用该函数。总是被调用。

(classmethod) hash

介绍: 散列函数值,调用该方法可以得到对象的7位哈希数字。

(staticmethod) new

介绍: 静态方法,用于创建类实例;它在__init__之前被调用。

(classmethod) reduce

介绍: 没找到介绍。

(classmethod) reduce_ex

介绍: 没找到介绍

(classmethod) setattr

介绍: 设置属性attr;内建函数self.setattr(self,attr,val)的调用;

(classmethod) sizeof

介绍: 没找到介绍

(classmethod) str

介绍: :当前对象被字符串化时被调用;内建函数str(self)函数,或print(self)的调用;

(classmethod) subclasshook

介绍: 没找到介绍

(classmethod) weakref

介绍: 没找到介绍

(classmethod) inject_url_defaults

参数: endpoint,values

介绍:

(classmethod) iter_blueprints

介绍:

(setupmethod) register_blueprint

参数: blueprint,**options

介绍:

(classmethod) update_template_context

参数: context

介绍:

(setupmethod) add_template_filter

参数: f,name=None

介绍:

(classmethod) jinja_env

介绍:

(property)propagate_exceptions

介绍:

(classmethod) open_session

参数: request

介绍:

(classmethod) preprocess_request

介绍:

(classmethod) raise_routing_exception

参数: request

介绍:

(setupmethod) before_request

参数: f

介绍:

(classmethod) should_ignore_error

参数: error

介绍:

(classmethod) init

参数: import_name, static_path = None, static_url_path = None,static_folder = 'static', template_folder = 'templates',instance_path = None, instance_relative_config = False,root_path = None

介绍:

(classmethod) try_trigger_before_first_request_functions

介绍:

(classmethod) test_request_context

参数: args,*kwargs

介绍:

(setupmethod) url_value_preprocessor

参数: f

介绍:

(classmethod) make_config

参数: instance_relative=False

介绍:

(property)preserve_context_on_exception

介绍:

(setupmethod) url_defaults

参数: f

介绍:

(classmethod) handle_http_exception

参数: e

介绍:

(setupmethod) before_first_request

参数: f

介绍:

(classmethod) select_jinja_autoescape

参数: filename

介绍:

(classmethod) wsgi_app

参数: environ,start_response

介绍:

(classmethod) handle_user_exception

参数: e

介绍:

(classmethod) test_client

参数: use_cookies=True,**kwargs

介绍:

(classmethod) create_jinja_environment

介绍:

(classmethod) call

参数: environ,start_response

介绍:

(classmethod) do_teardown_appcontext

参数: exc=_sentinel

介绍:

(property)logger

介绍:

(setupmethod) add_template_global

参数: f,name=None

介绍:

(setupmethod) template_filter

参数: name=None

介绍:

(setupmethod) shell_context_processor

参数: f

介绍:

(classmethod) process_response

参数: response

介绍:

(classmethod) run

参数: host=None,port=None,debug=None,**options

介绍:

(setupmethod) template_test

参数: name=None

介绍:

(classmethod) handle_url_build_error

参数: error,endpoint,values

介绍:

(classmethod) do_teardown_request

参数: exc=_sentinel

介绍:

(staticmethod) _get_exc_class_and_code

参数: exc_class_or_code

介绍:

(classmethod) create_global_jinja_loader

介绍:

(setupmethod) errorhandler

参数: code_or_exception

介绍:

(classmethod) log_exception

参数: exc_info

介绍:

(setupmethod) context_processor

参数: f

介绍:

(classmethod) full_dispatch_request

介绍:

(setupmethod) teardown_appcontext

参数: f

介绍:

(classmethod) register_error_handler

参数: code_or_exception,f

介绍:

(classmethod) create_url_adapter

参数: request

介绍:

(classmethod) make_null_session

介绍:

(classmethod) init_jinja_globals

介绍:

(classmethod) _find_error_handler

参数: e

介绍:

(classmethod) finalize_request

参数: rv,from_error_handler=False

介绍:

(classmethod) save_session

参数: session,response

介绍:

(setupmethod) endpoint

参数: endpoint

介绍:

(classmethod) name

介绍:

(classmethod) make_default_options_response

介绍:

(setupmethod) _register_error_handler

参数: key,code_or_exception,f

介绍:

(classmethod) dispatch_request

介绍:

(setupmethod) add_url_rule

参数: rule,endpoint=None,view_func=None,**options

介绍:

(classmethod) route

参数: rule,**options

介绍:

(classmethod) open_instance_resource

参数: resource,mode='rb'

介绍:

(classmethod) handle_exception

参数: e

介绍:

(classmethod) app_context

介绍:

(classmethod) make_shell_context

介绍:

(property)got_first_request

介绍:

(setupmethod) template_global

参数: name=None

介绍:

(classmethod) repr

介绍:

(classmethod) make_response

参数: rv

介绍:

(classmethod) request_context

参数: environ

介绍:

(classmethod) auto_find_instance_path

介绍:

(setupmethod) add_template_test

参数: f,name=None

介绍:

(setupmethod) after_request

参数: f

介绍:

(setupmethod) teardown_request

参数: f

介绍:

(classmethod) trap_http_exception

参数: e

介绍:

方法类型介绍:

  • 成员方法:类方法中第一个参数是self的为类成员方法。
  • classmethod 类方法中第一个参数是cls(类对象)的方法
  • property 类变量的只读方法: 使用了装饰器@property的方法
  • staticmethod: 使用了装饰器@staticmethod的静态方法。静态方法和类方法相似,区别是静态方法不关注对象和对象内部属性,静态方法不强制要求参数。
  • setupmethod

@classmethod means: when this method is called, we pass the class as the first argument instead of the instance of that class (as we normally do with methods). This means you can use the class and its properties inside that method rather than a particular instance.

@staticmethod means: when this method is called, we don't pass an instance of the class to it (as we normally do with methods). This means you can put a function inside a class but you can't access the instance of that class (this is useful when your method does not use the instance).

Flask类的属性和方法大全的更多相关文章

  1. [OC][转]UITableView属性及方法大全

    Tip: UITableView属性及方法大全  (摘录地址) p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 1 ...

  2. Android零基础入门第22节:ImageView的属性和方法大全

    原文:Android零基础入门第22节:ImageView的属性和方法大全 通过前面几期的学习,TextView控件及其子控件基本学习完成,可以在Android屏幕上显示一些文字或者按钮,那么从本期开 ...

  3. Android零基础入门第17节:Android开发第一个控件,TextView属性和方法大全

    原文:Android零基础入门第17节:Android开发第一个控件,TextView属性和方法大全 前面简单学习了一些Android UI的一些基础知识,那么接下来我们一起来详细学习Android的 ...

  4. <九>面向对象分析之UML核心元素之设计类,类,属性,方法,可见性

    设计类

  5. java基础学习总结六(对象与类、类的属性与方法)

    一:面向过程与面向对象的区别 举例:一个人开门的动作,可以分解为开门,人进去,关门. 面向过程:人作为执行者,1:开门  2:进入   3:关门 面向对象:人作为指挥者,将开门,关门的动作都封装到门上 ...

  6. final可以修饰类、属性、方法

    final可以修饰类.属性.方法. 当用final修饰类的时候,此类不可被继承,即final类没有子类.这样可以用final保证用户调用时动作的一致性,可以防止子类覆盖情况的发生. 当利用final修 ...

  7. Java 类、属性、方法修饰符 public、private、protected、default

    Java 中修饰类修饰符:public .default (默认) Java 中修饰类中属性.方法修饰符:public.private.protected.default (默认) 通过 IDEA 创 ...

  8. Delphi 正则表达式之TPerlRegEx 类的属性与方法(7): Split 函数

    Delphi 正则表达式之TPerlRegEx 类的属性与方法(7): Split 函数 //字符串分割: Split var   reg: TPerlRegEx;   List: TStrings; ...

  9. Delphi 正则表达式之TPerlRegEx 类的属性与方法(6): EscapeRegExChars 函数

    Delphi 正则表达式之TPerlRegEx 类的属性与方法(6): EscapeRegExChars 函数 // EscapeRegExChars 函数可以自动为特殊字符加转义符号 \ var   ...

随机推荐

  1. MySQL 如何使用索引 较为详细的分析和例子

    在数据库表中,使用索引可以大大提高查询速度. 假如我们创建了一个 testIndex 表: CREATE TABLE testIndex(i_testID INT NOT NULL,vc_Name V ...

  2. 海量数据挖掘MMDS week5: 计算广告Computational Advertising

    http://blog.csdn.net/pipisorry/article/details/49428053 海量数据挖掘Mining Massive Datasets(MMDs) -Jure Le ...

  3. 谈谈Ext JS的组件——布局的使用方法续一

    盒子布局 盒子布局主要作用是以水平(Ext.layout.container.HBox)或垂直方式(Ext.layout.container.VBox)来划分容器区域.这也是比较常有的布局方式. 使用 ...

  4. UNIX环境高级编程——UNIX基础知识

    1.用户在登陆linux系统时,先键入登录名,然后键入口令.系统在其口令文件(通常是/etc/passwd文件)中查看登录名.口令文件中的登陆项由7个以冒号分隔的字段组成,它们是:登录名.加密口令.数 ...

  5. JSP编译成Servlet(五)JDT Compiler编译器

    通过JSP编译器编译后生成了对应的java文件,接下去要把Java文件编译成class文件.对于这部分完全没有必要重新造轮子,常见的优秀编译工具有Eclipse JDT Java编译器和Ant编译器. ...

  6. (四十八)Quartz2D引擎进阶

    图形上下文栈: 应用,修改过上下文后,下一次画会在这个基础上进行,如果清空状态,需要上下文栈. 可以先把原来的上下文保存起来,然后恢复: - (void)drawRect:(CGRect)rect { ...

  7. sed命令 linux

    sed 实用工具是一个"编辑器",但它与其它大多数编辑器不同.除了不面向屏幕之外,它还是非交互式的.这意味着您必须将要对数据执行的命令插入到命令行或要处 理的脚本中.当显示它时,请 ...

  8. 高通 MSM8K bootloader 之四: ramdump

    前面说过高通平台,系统crash发生时,抓取crash ramdump非常重要,否则很难定位crash原因. 平台默认抓取ramdump的方法都有很强的局限性,如下: 1.PC端工具QPST提供的 M ...

  9. Learning ROS for Robotics Programming Second Edition学习笔记(九) indigo Gazebo rviz slam navigation

    中文译著已经出版,详情请参考:http://blog.csdn.net/ZhangRelay/article/category/6506865 书中三维环境gazebo,slam的仿真例子 --$ r ...

  10. 网站开发进阶(三)Windows NAT端口映射

    Windows NAT端口映射 由于有需求进行端口映射,又不想装乱七八糟的软件,Windows本身自带的路由远程访问配置太麻烦,还要两块网卡,坑爹啊. 其实Windows本身命令行支持配置端口映射,条 ...