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

为什么 default???? Python 2.7.10 (default, Jul 14 2015, 19:46:27)

  •  
  •   tochinato · Oct 19, 2015 · 2171 views
    This topic created in 3883 days ago, the information mentioned may be changed or developed.
    刚开始学习 python
    Learn Python The Hard Way
    Exercise 0
    遇到疑惑:当我在 terminal 中输入 python 时出现如下:
    Python 2.7.10 (default, Jul 14 2015, 19:46:27)
    为什么我的显示是 default ,书中显示的是 r251:5486 难道计算机有什么问题吗,还是环境变量设置有什么问题。电脑是新入手的 mac ,不同的系统也不太懂。今天也是花了 2 个小时才明白终端 terminal 的一些命令操作,完成了 exercise0 的准备工作。
    求解答?
    Kisesy
        1
    Kisesy  
       Oct 19, 2015   ❤️ 1
    不要在意这些细节
    tochinato
        2
    tochinato  
    OP
       Oct 19, 2015
    是不是默认环境变量的意思啊
    Kisesy
        3
    Kisesy  
       Oct 19, 2015
    是不是默认环境变量我倒不清楚
    但是一般不需要注意,只看大版本号就行
    我电脑上装的 3.4.3 版本 显示的是 v3.4.3:9b73f1c3e601
    前面是版本号,后面是个 hash 值,这个是个唯一值,不重复的,这种东西类似 git 里的 hash
    还有一些版本号是表示编译次数,例如 2.3.563 前面的 2.3 是版本,后面的 563 是总的编译次数
    某些 ide 会这样做,其实也是起到区分版本的作用
    tochinato
        4
    tochinato  
    OP
       Oct 20, 2015
    @Kisesy 非常感谢您的回复
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:50 · PVG 05:50 · LAX 14:50 · JFK 17:50
    ♥ Do have faith in what you're doing.