【发布时间】:2012-01-12 12:40:37
【问题描述】:
谁能提供一个如何从 URL 读取和打印“sydney”和“NSW”的示例:
http://xyz.appspot.com/main?city=sydney&state=NSW
使用def get (name, city, state) 函数?
谢谢
【问题讨论】:
标签: python google-app-engine url get
谁能提供一个如何从 URL 读取和打印“sydney”和“NSW”的示例:
http://xyz.appspot.com/main?city=sydney&state=NSW
使用def get (name, city, state) 函数?
谢谢
【问题讨论】:
标签: python google-app-engine url get
它的使用非常简单
def get(self):
city = self.request.get('city')
state = self.request.get('state')
这是你得到的第一件事
【讨论】:
假设你在 Python 2.7 下使用 webapp2
【讨论】: