#引入包
import web
#定义访问路径
urls = (
'/(.*)', 'hello'
)
#定义app
app = web.application(urls, globals())
#定义访问类
class hello:
def GET(self, name):
print name
return 'Hello, ' + name + '!'
#启动
if __name__ == "__main__":
app.run()