Python-面向对象-静态方法

 

class Mysql(object):
    @staticmethod
    def conn(user):
        pass

Mysql.conn('zhangsan')
原文地址:https://www.cnblogs.com/missliu-123/p/12622774.html