84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
请问我需要在访问'xxx.com/app?id=123'的时候用App类去处理,那么在web.py里面设置的时候应该怎么设置呢?我写('/app?id=(\d+)', 'App')却说404。
'xxx.com/app?id=123'
('/app?id=(\d+)', 'App')
问号后面的不属于url路径
楼上说的对,路由只写问号前面的想接受?id=123 的值那就到这个路由的函数里给个形参接受
def mycfunction(id): printf (id);
问号后面的不属于url路径
楼上说的对,路由只写问号前面的
想接受?id=123 的值那就到这个路由的函数里给个形参接受