如何理解ops_render的参数
来源:7-6 账号管理:列表和详情展示

就叫校长吧
2019-10-19
请问老师,如何理解osp_render 中的第二个参数呢?传递到页面页面中就有这些数据了吗?
**context怎么理解呢?不太明白
def osp_render (template, context={}):
if 'current_user' in g:
context['current_user'] = g.current_user
return render_template(template, **context)
写回答
1回答
-
你好
这个是python的非常好的一点
* 和 ** 区别
https://blog.csdn.net/yilovexing/article/details/80577510
012019-10-24
相似问题