摘要:
#!/usr/bin/env python # -*- coding:utf-8-*- import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): sel 阅读全文
摘要:
compile(source,filename,mode [,flags [,dont_inherit]]) 中文说明:将源编译为代码或者AST对象。代码对象能够通过exec语句来执行或者eval()进行求值。 参数source:字符串或者AST(Abstract Syntax Trees)对象。 阅读全文
摘要:
1、tonado的模板文件的配置和前后端的交互代码如下: #!/usr/bin/env python # -*- coding:utf-8-*- import tornado.ioloop import tornado.web info = [] class MainHandler(tornado. 阅读全文