opened file input.txt
inp = open('input.txt')
# i did created list
inputs = []
# scrap all value in our input file
for line in inp:
inputs.append(line.replace('\n', ''))
folders = dd[0].replace('Folder : ', '')
site_link = dd[1].replace('Site link : ', '')
Shell = dd[2].replace('Shell : ', '')
Title = dd[3].replace('Title : ', '')
Price = price()
MaxPages = int(dd[5].replace('Max pages : ', ''))
Stars = dd[-1].replace('Stars : ', '')
А нельзя .ini конфиги использовать?
Обсуждают сегодня