摘要:
11.请简单解释Python中 staticmethod(静态方法)和 classmethod(类方法), 并分别补充代码执行下列方法 staticmethod(静态方法):又称为非绑定方法,不与类和对象绑定,就是一个普通方法,不会自动传值。 classmethod(类方法):是绑定到类的方法,自动 阅读全文
posted @ 2018-11-22 16:26
一把西瓜刀
阅读(528)
评论(0)
推荐(0)
摘要:
7.python中经典类和新式类的区别 def exc1(host,port,db,charset,sql): conn=connect(host,port,db,charset) conn.execute(sql) return xxx def exc2(host,port,db,charset, 阅读全文
posted @ 2018-11-22 14:28
一把西瓜刀
阅读(1423)
评论(0)
推荐(0)

浙公网安备 33010602011771号