gpt4 book ai didi

python - 类 python 中的 IndentationError

转载 作者:太空宇宙 更新时间:2023-11-04 08:34:57 25 4
gpt4 key购买 nike

<分区>

我有这样的代码

# -*- coding: utf-8 -*-

class OP(object):

def RECEIVE_MESSAGE(self):
print("done")


def NOTIFIED_INVITE_INTO_GROUP(self):
print("done")

但是当我运行它的时候出现了一些错误

Traceback (most recent call last):
File "run.py", line 2, in <module>
from van import ERVAN
File "/home/server/.pub/van.py", line 4, in <module>
from op import OP
File "/home/server/.pub/op.py", line 9
def NOTIFIED_INVITE_INTO_GROUP(self):
^
IndentationError: unindent does not match any outer indentation level

有什么解决办法吗?它只有 10 行,但让我大吃一惊

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com