#coding=utf-8

# class Test(object):

# 	count = 0

# 	def __init__(selfs):
# 		print "__init__() has been called!"
# 		selfs.a = 1

# 	def test(selfs):
# 		print "this is a test function!"				#这个函数称之为实例函数

# 	@staticmethod
# 	def staticmethod_test():
# 		print "call the static method!!" + str(count)	#error: 静态函数不能访问类属性，以及实例属性
	
# 	@classmethod
# 	def classmethod_test(cls):
# 		print "call the static method!!" + str(cls.a)	#error: 类函数不能访问实例属性


# a = Test()


# print dir(a)

# print a.__dict__
# print a.__class__

# print a.count
# print Test.count
# Test.count = 3
# a.count = 1
# print a.count
# print Test.count


#a.staticmethod_test()
# a.classmethod_test()


