我们在python中定义类如下:
class A:
def x(self):
print("In x")
Run Code Online (Sandbox Code Playgroud)
但我只是犯了一个错字,它在 linux cli 中使用 python 3.7 版成功执行。这里是:
class A():
def x(self):
print("In x")
Run Code Online (Sandbox Code Playgroud)
这是什么意思???