Posts by Estagiário • 17 points
3 posts
-
0
votes1
answer58
viewsQ: Python3 Format print, to take bugs from symbols
import os with open('lista.txt', 'r') as lista: l = lista.read().splitlines() for s in l: v = os.system('ping '+s) print ((v).format) This ping works, but returns with symbols like: I saw that the…
python-3.xasked Estagiário 17 -
-2
votes1
answer1844
viewsQ: How to change a specific word in a TXT by another
I need to change the configuration of the Zabbix server that is in this directory C:\zabbix\conf\zabbix_agentd.win.conf I need to replace the word: hostname= for hostname=192.168.1.1 I did that, but…
-
1
votes2
answers56
viewsQ: If block is not well located, how to solve?
I did so, by the way he’s making a mistake, because door 80 is open and he returns as closed import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server = '201.27.188.138' port = '80'…