Config.py 499 B

123456789101112131415161718192021222324252627
  1. import http.client
  2. from MySQLPool import MySQLPool
  3. # 示例:初始化连接池
  4. mysql_pool = MySQLPool(
  5. host='10.10.10.230',
  6. user='py_amac',
  7. password='py_amac',
  8. database='py_amac'
  9. )
  10. conn = http.client.HTTPSConnection("gs.amac.org.cn")
  11. payload = "{}"
  12. headers = {
  13. 'Accept': "*/*",
  14. 'Accept-Encoding': "gzip, deflate, br",
  15. 'User-Agent': "PostmanRuntime-ApipostRuntime/1.1.0",
  16. 'Connection': "keep-alive",
  17. 'Content-Type': "application/json"
  18. }
  19. page = 0
  20. size = 20