10 lines
221 B
Python
10 lines
221 B
Python
import configparser
|
|
|
|
config_file_path = "config.ini"
|
|
|
|
|
|
def get_config_object():
|
|
""" 返回配置对象 """
|
|
config = configparser.ConfigParser()
|
|
config.read(config_file_path, encoding='utf-8')
|
|
return config |