def query (key ):
results = searcher.find ("content", key )
tmp=[]
for i in results:
tmp.append (i )
print (tmp )
print (type (tmp ))
#print (results )
return "".join (tmp )
请问这个代码为什么在控制台输出很正常 而在 flask 框架中输出不出来呢?
1
firemiles 2015-09-18 08:57:02 +08:00 1
logger
A logging.Logger object for this application. The default configuration is to log to stderr if the application is in debug mode. This logger can be used to (surprise ) log messages. Here some examples: ```python app.logger.debug ('A value for debugging') app.logger.warning ('A warning occurred (%d apples )', 42 ) app.logger.error ('An error occurred') ``` |