Python
文章平均质量分 76
Genesislive
这个作者很懒,什么都没留下…
展开
-
快速排序Python实现
快速排序Python实现 gist: https://gist.github.com/genesislive/5081031 #!/usr/bin/env python # -*- coding: UTF-8 -*- __author__ = 'Genesislive' def partition(list, start, end): pivot = list[sta原创 2013-03-04 17:19:24 · 607 阅读 · 0 评论 -
Python Challenge 09 Solution
#!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/return/good.html __author__ = 'Genesislive' import Image # hint: first+second=? first = [146, 399, 163, 403,原创 2013-04-22 14:27:05 · 846 阅读 · 0 评论 -
Python Challenge 05 Solution
gist: https://gist.github.com/genesislive/5097610 #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/peak.html __author__ = 'Genesislive' import urllib im原创 2013-03-25 17:17:35 · 744 阅读 · 0 评论 -
Python Challenge 04 Solution
gist: https://gist.github.com/genesislive/5097515 #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/linkedlist.php import urllib, re uri = 'http://www.原创 2013-03-20 19:49:11 · 752 阅读 · 0 评论 -
Python Challenge 03 Solution
gist #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/equality.html import re # the content of equality.txt is from the # source of equality.html with原创 2013-03-20 19:48:34 · 857 阅读 · 0 评论 -
Python Challenge 01 Solution
gist: https://gist.github.com/genesislive/5097213 #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/map.html import string text = ''' g fmnc wms bgblr原创 2013-03-16 20:09:49 · 747 阅读 · 0 评论 -
Python Challenge 08 Solution
#!/usr/bin/env python # -*- coding: UTF-8 -*- __author__ = 'Genesislive' # http://www.pythonchallenge.com/pc/def/integrity.html import bz2 # Python bz2 module: http://effbot.org/librarybook/bz原创 2013-03-31 11:54:51 · 831 阅读 · 0 评论 -
Python Challenge 02 Solution
gist: https://gist.github.com/genesislive/5097326 #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/ocr.html import re # the content of rare_characters原创 2013-03-17 22:03:48 · 834 阅读 · 0 评论 -
Python Challenge 06 Solution
gist: https://gist.github.com/genesislive/5098123 #!/usr/bin/env python # -*- coding: UTF-8 -*- # http://www.pythonchallenge.com/pc/def/channel.html # # see readme in http://www.pythonchalle原创 2013-03-31 11:53:23 · 947 阅读 · 0 评论 -
Python Challenge 10 Solution
gist: https://gist.github.com/genesislive/5106789 #!/usr/bin/env python # -*- coding: UTF-8 -*- __author__ = 'Genesislive' # http://www.pythonchallenge.com/pc/return/bull.html # username: h原创 2014-03-27 19:09:01 · 867 阅读 · 0 评论