V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
OnlyBlue
V2EX  ›  Python

这里的scoping和threading是什么意思?

  •  
  •   OnlyBlue · 2011-12-03 11:22:02 +08:00 · 4821 次点击
    这是一个创建于 4500 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Stack Overflow 上的帖子,太长了,我把网址帖出来。

    http://stackoverflow.com/questions/3728577/python-scoping-and-threading-question
    2 条回复    1970-01-01 08:00:00 +08:00
    keakon
        1
    keakon  
       2011-12-03 12:22:52 +08:00
    正文里就提到一次scoping,只能当作用域解释。线程可以访问自己的变量,并且共享进程的全局变量。
    OnlyBlue
        2
    OnlyBlue  
    OP
       2011-12-03 20:50:12 +08:00
    我在一个PHP程序中看到class Scoping{}和class Threading{},看不明白他们是什么意思,但感觉到scoping和threading的意思是相对应的。

    我搜了一下,就发现了这个帖子,其中标题中正好有scoping和threading两个单词,所以觉得他们的意思和上面的情形一样,但是又看不懂帖子,所以在这发了一个问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 06:56 · PVG 14:56 · LAX 23:56 · JFK 02:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.