我想實現在我的本地驗證碼: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,謝謝。