python flask 서버 에서 인터페이스, post, get 방식, 파라미터 획득 방법 실현

529 단어 python
1. get 방식 경로 에 있 는 매개 변수
 eg.http://http://127.0.0.1:5000/researchReports/researchUsers/1111 \ # 그 중 1111 은 가 져 올 인자 입 니 다.
가 져 오 는 방법:
4. 567913. 즉, 함수 중의 매개 변 수 는 바로 매개 변 수 를 얻 는 것 이다.
2. get 방식 쿼 리 에 있 는 매개 변수
eg:http://127.0.0.1:5000/researchReports/recommendStks?type=all&researchUserId=55&page=1&pageSize=10
가 져 오 는 방법:
게시 방식
eg.http://127.0.0.1:5000/researchReports/researchUsers
그 매개 변 수 는 body 에 있 습 니 다.
매개 변수 가 져 오기:
4. 567913. 그 중에서 data 는 body 의 매개 변수 형식 이다.

좋은 웹페이지 즐겨찾기