为了账号安全,请及时绑定邮箱和手机立即绑定

__template__() takes no arguments (2 given)

class Test(object):
    def GET(self):
        index = web.template.frender('templates/index.html')
        try:
            return index("hello word","zhangsan")
        except Exception as e:
           print (e.message)

报错   

  • __template__() takes no arguments (2 given)


正在回答

1 回答

get()方法是不是要加2个变量?

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
python-web.py开发入门
  • 参与学习       58640    人
  • 解答问题       106    个

web.py开发入门入门教程,讲解一个你最快能学会的web开发的框架

进入课程

__template__() takes no arguments (2 given)

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信