摘要:
#什么是反射? #用字符串数据类型的变量名来访问这个变量的值 #————————类的反射 class Student: Money=0 @classmethod def check_course(cls): print('查看课程了') @staticmethod def login(): print('登录成功') #反... 阅读全文
posted @ 2018-11-03 22:02
有钱淫
阅读(180)
评论(0)
推荐(0)
摘要:
class P: def __init__(self,name,age): self.name=name if type(age) is int: self.__age=age else: print('你输入的年龄的类型有误,请重新输入数字') @property def a... 阅读全文
posted @ 2018-11-03 13:46
有钱淫
阅读(218)
评论(0)
推荐(0)
摘要:
class P: def __init__(self,name,age): self.name=name if type(age) is int: self.__age=age else: print('你输入的年龄的类型有误,请重新输入数字') @property def a... 阅读全文
posted @ 2018-11-03 13:38
有钱淫
阅读(64)
评论(0)
推荐(0)
浙公网安备 33010602011771号