参考之前博客 https://blog.csdn.net/qq_41517071/article/details/129782471
解耦合的思路,分为主函数和工具函数
# -*- coding:utf-8 -*-f import requests import time import pandas as pd import openai import test openai.api_key