Archives week 9 of 2016

Feb. 29, 2016 - March 6, 2016

Python list

Python list

a.Method for creating a list

     1.create list
     eg.
        >>> a=["python",25,89.9]
        >>> a
        ["python",25,89.9]
     2.list index   
     eg.
        >>> a=["python",25,89.9]
        >>> a[0]
        'python'
        >>> a[1]
        25
        >>> a[2]
        89.9
        >>> a[-1]
        89.9
        #get the index ...

Continue reading

Between the characters and numbers in Python is how to compare the size?

Between the characters and numbers in Python is how to compare the size?

1. any two objects can be compared

2. The same type of objects (instances), if it is digital type (int/float/long/complex), in accordance with the simple size to compare; if is non numeric type and class (type) definition of the ...

Continue reading

Daily archives

Previous week

Week 7 of 2016

Next week

Week 20 of 2016

Archives