37,743
社区成员




#!/usr/bin/env python
# -*- coding: utf-8 -*-
import web
urls=('/test','Test')
app = web.application(urls,globals())
class Test:
def GET(self):
#return the resource (group) details
return 'GetTest'
def PUT(self):
#update the resource
return 'PutTest'
def POST(self):
#creat/update the resource
postContent = '' #此处如何获取所接收到的POST数据包中的内容???
print
return postContent
def DELETE(self,resourceId):
#delete the resource
return 'DeleteTest'
if __name__ == '__main__':
app.run()