<qiyuangong>141_Linked_List_Cycle_1.py
def hasCycle( head):
    if head is None:
        return False
    count = 0
    max = 100000
    pos = head
    while pos is not None:
        count += 1
        pos = pos.next
        if count > max:
            return True
    return False
def sample_funcname ( var_0 ) :
    if var_0 is None :
        return False
    var_4 = 0
    var_6 = 100000
    var_7 = var_0
    while var_7 is not None :
        var_4 += 1
        var_7 = var_7.next
        if var_4 > var_6 :
            return True
    return False
