Python 我在github中复制了一个tkinter库代码,现在我遇到了缩进错误
因此,我想我不小心删除了tkinter库中的init.py,所以我创建了一个新库并将代码复制到 现在我有一个缩进错误:在Python 我在github中复制了一个tkinter库代码,现在我遇到了缩进错误,python,tkinter,Python,Tkinter,因此,我想我不小心删除了tkinter库中的init.py,所以我创建了一个新库并将代码复制到 现在我有一个缩进错误:在 def __eq__(self, other): """Comparison for equality (==). Note: if the Variable's master matters to behavior also compare self._master == other._master
def __eq__(self, other):
"""Comparison for equality (==).
Note: if the Variable's master matters to behavior
also compare self._master == other._master
"""
return self.__class__.__name__ == other.__class__.__name__ \
and self._name == other._name
这里是全部错误
回溯(最近一次呼叫最后一次):
文件“C:\Users\mypc\eclipse workspace\myproject\package\module.py”,第6行,在
将tkinter作为tk导入
文件“C:\Users\mypc\AppData\Local\Programs\Python37\lib\tkinter\uuuu init\uuuuu.py”,第929行
和self.\u name==其他。\u name
^
缩进错误:意料之外的缩进我想我只是个傻瓜,我只需要把它原封不动地复制下来就可以解决所有问题