ip=192.168.1.1
with io.open('1.txt',"r") as file:
for line in file:
if "ip=" in line:
print(line)
ip=192.168.1.1
192.168.1.1
? for line in open('1.txt'):
line = line.strip()
if line.startswith("ip"):
print(line.split("=")[1].strip())