37,721
社区成员
发帖
与我相关
我的任务
分享
class Testdd():
def out(self):
globals()['md'] = 100
print("out函数")
def other(self):
print("othoer函数")
ss = md+ 200
print(ss)
if __name__ =="__main__":
t = Testdd()
t.other()
md = 100
def other(self):
print("othoer函数")
ss = self.md + 200
print(ss)