Найти - Пользователи
Полная версия: Выскакивает ошибка: TabError: inconsistent use of tabs and spaces in indentation. Я не знаю что делать.
Начало » Центр помощи » Выскакивает ошибка: TabError: inconsistent use of tabs and spaces in indentation. Я не знаю что делать.
1
Sec_Dec
 import socket
import time
import sys
sysif = sys.platform
host = "localhost"
port = 9090
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
while True:
    buf = input()
    s.send(buf.encode('utf8'))
    result = s.recv(1024)
    print('['+time.asctime()+'] ' + 'Ответ сервера: ', result.decode('utf8'))
	c = result.decode('UTF-8')
    if buf == "exit":
        break
	elif c == 'sysinf':
	    if sysif == 'win32':
		     a = 'windows 32'
		     s.send(a.decode('utf8'))
		     del a
		else:
		  s.send(sysif.encode('utf8'))
s.close()
time.sleep(10)
doza_and
Я не знаю что делать.

1. Заменить табуляции на пробелы
2. Настроить среду разработки чтобы табуляции сразу в пробелы преобразовывались.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB