NULL
博文链接:https://shixm.iteye.com/blog/381884abstract
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple
but effective approach to ohject-oriented programming. Python's elegant syntax a
本文实例讲述了Python面向对象程序设计。分享给大家供大家参考,具体如下:
示例1:
#encoding:utf-8
'''example 1
class test:
def __init__(self,year,**arg):
self.year = year
self.args = arg
def kaka(self):
if isinstance(self.year,str):
print 'input\'s year is a string