import time ms = int(round(time.time() * 1000)) print(ms)
class A: @staticmethod def m(): print "A" class B(A): @staticmethod def m(): print "B" a = A() a.m() # A b = B() b.m() # B
class A(object): def __init__(self): print "world" class B(A): def __init__(self): print "hello" super(B, self).__init__()
class A: def __init__(self): print "world" class B(A): def __init__(self): print "hello" A.__init__(self)
def equals_ignore_case(s1, s2): if s1 is None and s2 is None: return True if s1 is None and s2 is not None: return False if s1 is not None and s2 is None: return False return s1.lower() == s2.lower()