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
1.4m articles
1.4m replys
5 comments
57.0k users