Posts by Dante • 13 points
2 posts
-
0
votes3
answers90
viewsA: Problem editing a list in Python 3
Opa, You have to update the list value in the loop for x = open ('exemplo1.txt','r') lista = x.readlines() # a lista está parada aqui for l in lista: # aqui está sendo apenas passado os valores da…
-
0
votes1
answer336
viewsQ: Does Python have a way to natively drip an IP?
Is there any way to drip an IP natively into python, or a library? For example, I do so: import os ips = ["192.168.0.1","192.168.0.2","192.168.0.3"] cmd = "ping -n 3 " for ip in ips:…