You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
238 B
10 lines
238 B
import configparser
|
|
|
|
#加载配置文件
|
|
def load_config():
|
|
configFile = './config.ini'
|
|
# 创建配置文件对象
|
|
con = configparser.ConfigParser()
|
|
# 读取文件
|
|
con.read(configFile, encoding='utf-8')
|
|
return con
|