Answers for "how to make a config txt file on python"

0

how to make a config txt file on python

#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]
Posted by: Guest on October-16-2021

Code answers related to "how to make a config txt file on python"

Python Answers by Framework

Browse Popular Code Answers by Language