ich habve hier ein stück code wenn ich diesen ausführe erhalte ich immer ein Error genaus sagt die COnsole :C:\Users\konst>C:\Users\konst\.idlerc\Main2.py
Traceback (most recent call last):
File "C:\Users\konst\.idlerc\Main2.py", line 2, in <module>
import Sodoku
File "C:\Users\konst\.idlerc\Sodoku.py", line 10
def setzahlen(self, neuzahlen):
^
IndentationError: unindent does not match any outer indentation level
ich weis nicht wie dieser fehler zustande kommt der code :
Code: Alles auswählen
class Feld:
def __init__(self, feld, zahlen):
self.feld = feld
self.zahlen = zahlen
def getzahlen(self):
return zahlen
def setzahlen(self, neuzahlen):
if isinstance(zahlen, types.ListType):
zahlen = neuzahlen
else:
pass
def getfeld(self):
return feld