推荐学习书目
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
superwg1984
V2EX  ›  Python

新手学习,用 python 写了一个生命游戏,有些问题请各位帮忙

  •  
  •   superwg1984 ·
    superwg1984 · Sep 8, 2015 · 3703 views
    This topic created in 3907 days ago, the information mentioned may be changed or developed.
    https://github.com/superwg1984/lifegame
    规则:
    当生命周围没有其他生命时,当前生命 hp+1,
    周围生命大于 4 个时,hp-1
    当生命 hp>=10 时,生命开始分裂出新的生命,这两个生命的 hp=5

    遇到的问题: 随着时间增加,执行速度越来越慢
    1 replies    2015-09-11 23:34:28 +08:00
    scutfish
        1
    scutfish  
       Sep 11, 2015
    写这个程序的目的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3139 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:11 · PVG 19:11 · LAX 04:11 · JFK 07:11
    ♥ Do have faith in what you're doing.