hi there,when learning flask,i have confronted a question,which is "BuildError : Could not build url for endpoint 'login'. Did you mean 'index' instead?",my code is below.
Code:
__author__ = 'Administrator'
from app import app,db,lm,oid
from flask import render_template,flash,redirect,session,url_for,request,g
from flask.ext.login import login_user,logout_user,current_user,login_required
from models import User
problems with extracting high frequency words with class in python
this question may seem stupid for those who are familier with Python. however, it puzzles me a lot. when i tried to extrect words whose frequency is above 200, following codes works, but how to implement this function with "class"is a problem.
Leave a comment: