| 123456789101112131415161718192021222324252627 |
- import http.client
- from MySQLPool import MySQLPool
- # 示例:初始化连接池
- mysql_pool = MySQLPool(
- host='10.10.10.230',
- user='py_amac',
- password='py_amac',
- database='py_amac'
- )
- conn = http.client.HTTPSConnection("gs.amac.org.cn")
- payload = "{}"
- headers = {
- 'Accept': "*/*",
- 'Accept-Encoding': "gzip, deflate, br",
- 'User-Agent': "PostmanRuntime-ApipostRuntime/1.1.0",
- 'Connection': "keep-alive",
- 'Content-Type': "application/json"
- }
- page = 0
- size = 20
|