我想实现在我的本地验证码:web2py的语法错误非关键字精氨酸后关键字精氨酸
def form_a():
form = SQLFORM(db.registration, deletable=True, request.args(0), upload=URL(r=request, f='download'))
if form.accepts(request.vars, session):
if not form.record:
response.flash = "Your input data has been submitted."
else:
if form.vars.delete_this_record:
session.flash = "User record successfully deleted."
else:
session.flash = "User record successfully updated."
redirect(URL(r=request, f='form_a’))
records = db().select(db.registration.ALL)
return dict(form=form, records=records)
但我在此得到非关键字ARG后关键字ARG错误行:
form = SQLFORM(db.registration, deletable=True, request.args(0), upload=URL(r=request, f='download'))
而一个EOL,而在这条线扫描文字错误:
redirect(URL(r=request, f='form_a’))
我正在使用Python 3和Web2Py 2.4.6,谢谢。