# -*- encoding:utf-8 -*- ''' @Author : dingjiawen @Date : 2024/03/21 14:23 @Usage : @Desc :使用python调用Node的服务 ''' import requests data = { "name": "凯文-杜兰特", "image": "durant.png", "birthday": "1988-09-29", "height": "208cm", "weight": "108.9KG" } url = 'http://localhost:3000' response = requests.post(url, json=data) print(response.text)