推荐学习书目
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 · 4402 views
    This topic created in 4278 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   ·   Solana   ·   5366 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:03 · PVG 14:03 · LAX 23:03 · JFK 02:03
    ♥ Do have faith in what you're doing.