- 帖子
- 4
- 精华
- 0
- 积分
- 15
- 阅读权限
- 10
- 注册时间
- 2019-2-21
- 最后登录
- 2019-2-23
|
本帖最后由 sw529 于 2019-2-23 12:18 编辑
import web
urls = ('/', 'index',
)
class index:
def GET(self):
return 'hello world'
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
-----------------------------------------------------------------
<script>
if(bds.comm.supportis){
window.__restart_confirm_timeout=true;
window.__confirm_timeout=8000;
window.__disable_is_guide=true;
window.__disable_swap_to_empty=true;
}
initPreload({
'isui':true,
'index_form':"#form",
'index_kw':"#kw",
'result_form':"#form",
'result_kw':"#kw"
});
</script>
<script>
if(navigator.cookieEnabled){
document.cookie="NOJS=;expires=Sat, 01 Jan 2000 00:00:00 GMT";
}
</script>
</body>
</html>
Traceback (most recent call last):
File "F:/习题/tes.py", line 11, in <module>
app = web.application(urls, globals())
AttributeError: 'module' object has no attribute 'application'
>>> 我这个是什么问题,运行程序之后,就出来一串代码,还有下面的错误
|
|