1. import configparser
    2. machine = configparser.ConfigParser()
    3. machine.read('new.ini',encoding = 'utf-8')
    4. # 将文件加载入内存