import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
if __name__ == "__main__":
app.run()
2017-03-29
Traceback (most recent call last):
File "F:\Python\web.py", line 1, in <module>
import web
File "F:\Python\web.py", line 6, in <module>
app = web.application(urls, globals())
AttributeError: 'module' object has no attribute 'application'
File "F:\Python\web.py", line 1, in <module>
import web
File "F:\Python\web.py", line 6, in <module>
app = web.application(urls, globals())
AttributeError: 'module' object has no attribute 'application'
2017-03-23