推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
hermitu
V2EX  ›  Python

pyschools.com Topic3 question 11 我的代码有问题吗?

  •  
  •   hermitu · Sep 22, 2014 · 4722 views
    This topic created in 4425 days ago, the information mentioned may be changed or developed.
    pyschools Topic3 question 11

    Pairwise comparision of DNA sequences is a popular technique used in Bioinformatics. It usually involves some scoring scheme to express the degree of similarity. Write a function that compares two DNA sequences based on the following scoring scheme: +1 for a match, +3 for each consecutive match and -1 for each mismatch.

    我的代码:

    https://github.com/moioi/python/blob/master/ex-6.py

    在本地调试输出是正常的,但是拷贝到pyschools的运行代码框里,就提示

    Error: timeout. The server may be busy or check the code for possible endless loop.

    是我的代码有问题吗?

    在http://www.pyschools.com/quiz/view_topic/s3上面显示我的题目通过了,也许是网站的bug?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1960 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:47 · PVG 00:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.