Some uses of Python about ' inf ', sort (), sorted (), Min ()

Source: Internet
Author: User

Python

Float ("INF")

Delete an element in list

A = ["A", "B"]

Del A[0]

A.remove ("a")

Python Timeit module

Http://woodpecker.org.cn/diveintopython/performance_tuning/timeit.html

Http://www.cnblogs.com/moinmoin/archive/2011/03/18/python-runtime-measuring.html

Python sort

Python's sort function sort,sorted application in list sorting and dictionary sorting and examples

http://wangwei007.blog.51cto.com/68019/1100742

http://gaopenghigh.iteye.com/blog/1483864

Min

Enumerate () gets counted in the loop

Http://www.pythonclub.org/python-basic/built-in

Http://www.cnblogs.com/vivilisa/archive/2009/03/19/1417083.html

 

Some uses of Python about ' inf ', sort (), sorted (), Min ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.