I want to put a variable in script that i made
let's say
host = 192.168.1.1
and my comment in the script is :
tn.write("cpconf tohost=192.168.200.22:XXX ")
my request : want that instead XXX the variable it is will be host
XXX
how can do it ? use Python2.7.
Python2.7
2.1m questions
2.1m answers
60 comments
57.0k users