|
请教下面这段代码,在Python2.7 run不过,提示错误在定义类:Class Box:一列
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#!/usr/bin/python
# -*- coding: UTF-8 -*-
Class Box:
def __init__(self):
self.a = 0
self.b = 10
def info(self):
print ('a:',self.a,'b:',self.b)
if __name__=='__main__':
tc = Box()
tc.info()
|
|