📜  如何在 python 代码示例上制作配置 txt 文件

📅  最后修改于: 2022-03-11 14:45:33.164000             🧑  作者: Mango

代码示例1
#No library mode
file = open("abc.txt", 'r')
content = file.read()
paths = content.split("\n") 
for x in xs:
    print x.split(" = ")[1]
    
x_list = []
x_dict = {}
for path in paths:
    p = path.split(" = ")
    path_list.append(p)[1]
    path_dict[p[0]] = p[1]