0
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 staff declares the variable and puts . format, isn’t there an easier way not to put . format in everything?? and once put Unicode utf-8 pro script all understand??
Sorry mod;I can not at all format the python code here in stackoverflow
line 8, in <module> print (v.Encode('utf-8')) Attributeerror: 'int' Object has no attribute 'Encode'
– Estagiário
It was a mistake, and the first code you put, I had already tested in pycharm, he does not understand. I will try some module that does this for now
– Estagiário
Just need to fix another error now, the answer is this print(Ord(v[-1])), but now from this error: Typeerror: 'int' Object is not subscriptable
– Estagiário