84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
请问我需要在访问'xxx.com/app?id=123'的时候用App类去处理,那么在web.py里面设置的时候应该怎么设置呢?我写('/app?id=(\d+)', 'App')却说404。
'xxx.com/app?id=123'
('/app?id=(\d+)', 'App')
What follows the question mark does not belong to the url path
The person above is right, the route only contains the one before the question markWant to accept it? For the value of id=123, go to the routing function and accept it as a formal parameter
def mycfunction(id): printf (id);
What follows the question mark does not belong to the url path
The person above is right, the route only contains the one before the question mark
Want to accept it? For the value of id=123, go to the routing function and accept it as a formal parameter