python 中的 attributes 应该翻译成 属性 还是 特性 ? - 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
fengxiang

python 中的 attributes 应该翻译成 属性 还是 特性 ?

  •  
  •   fengxiang Jul 4, 2016 4267 views
    This topic created in 3601 days ago, the information mentioned may be changed or developed.

    买了本 python 基础教程 ,其中有这么句话:

    在面向对象程序设计中,术语对象( object )基本上可以看作数据(特性)以及由一系列可以存取、操作这些数据的方法所组成的集合。

    (出自: python 基础教程 112 页)

    查了下原著:

    In object-oriented programming, the term object loosely means a collection of data (attributes) with a set of methods for accessing and manipulating those data.

    (出自: http://pwsztar.edu.pl/wp-content/uploads/2013/06/Beginning-Python-From-Novice-to-Professional-Second-Edition.pdf

    这里的 attributes 是指属性吧?

    9 replies    2016-07-04 18:05:52 +08:00
    JhZ7z587cYROBgVQ
        1
    JhZ7z587cYROBgVQ  
       Jul 4, 2016   1
    属性+ 1
    fengxiang
        2
    fengxiang  
    OP
       Jul 4, 2016
    这本书里一堆排版翻译错误,是不是我买到盗版了啊。
    mornlight
        3
    mornlight  
       Jul 4, 2016   1
    英文的语义应该是属性的意思:对象的数据 == 对象的属性
    kair
        4
    kair  
       Jul 4, 2016   1
    属性
    cxbig
        5
    cxbig  
       Jul 4, 2016   1
    跟对象 Object 相关的通常翻译成“属性”
    国内翻译技术文档的多半不是做技术出生,建议读英文版材料。
    glasslion
        6
    glasslion  
       Jul 4, 2016   2
    从中文含义上看, 属性比特性更合适。 但 python 还有 property 的概念, 还是在括号里备注上英文名比较好: "属性(attribute)"
    araraloren
        7
    araraloren  
       Jul 4, 2016   2
    特性一般都是 traits
    attribute 都会翻译成属性。。
    接楼上的, property 和 attribute 语义也是不同的。。
    onlyice
        8
    onlyice  
       Jul 4, 2016 via Android   1
    楼上说得都挺好,特性似乎比较少用在编程语言上,一般是讲产品特性
    troywinter
        9
    troywinter  
       Jul 4, 2016   1
    还是直接看英文吧,很多英文没办法准确翻译成中文
    About     Help     Advertise     Blog     API     FAQ     Solana     5826 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 54ms UTC 01:59 PVG 09:59 LAX 18:59 JFK 21:59
    Do have faith in what you're doing.