# -*- coding: utf-8 -*- import sys import json sys.path += ["C:/Users/yangbo/Desktop/restassuredDemo/restassuredDemo/target/classes"] #2调用class sys.path += ["C:/Users/yangbo/.m2/repository/com/alibaba/fastjson/1.2.4/fastjson-1.2.4.jar"] #1调用json的jar包 sys.path +=["C:/Users/yangbo/Desktop/restassuredDemo/restassuredDemo/target/classes/com/eyibc"] from com.alibaba.fastjson import JSONObject #1调用json的jar包 import com.eyibc #2调用class test = com.eyibc.IBCHttpClienttest() a = JSONObject() a.put("userPhone", "13119102703") a.put("vType", "1") print(a) print("[--------]") print(test.buildUrl(a))