import configparser
import os
class Config:
def __init__(self):
BASE_PATH = os.path.split(os.path.dirname(os.path.abspath(__file__)))[0]
#"test_data" 是config文件的路径
CONFIG_FILE = os.path.join(BASE_PATH, 'test_data'
config类读取
最新推荐文章于 2023-03-31 13:46:31 发布