Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用谷歌搜索了很多,但找不到。
比如我的app是www.abc.com,这种url怎么匹配:
www.abc.com/?code=abcd1234
我的处理程序:
handers = [ (r"/?", HomeHandler), (r"/?code=([^/]+)", OtherHandler), ]
我认为第二种模式是错误的,它总是使用第一种
好的,我知道 r"/" 是路径,而 '?code=([^/]+)' 是查询。