标签:配置 pen file read 如何 print highlight 如何获取 file_path
import configparser base_path = os.getcwd() sys.path.append(base_path) file_path = base_path+" /Config/server.ini" cf = configparser.ConfigParser() cf.read(file_path) data = cf.get( ‘ server ‘, ‘ host‘) print(data)
标签:配置 pen file read 如何 print highlight 如何获取 file_path
原文地址:https://www.cnblogs.com/Winnie-s/p/14033494.html