如何理解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回答

编程浪子

2019-10-21

你好

这个是python的非常好的一点


* 和 **  区别

https://blog.csdn.net/yilovexing/article/details/80577510

0
1
就叫校长吧
非常感谢!
2019-10-24
共1条回复

Python Flask构建微信小程序订餐系统(可用于毕设)

微信小程序 + Python Flask 打造订餐系统全栈应用,可用于毕设。

1724 学习 · 1913 问题

查看课程