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
fengxiang
V2EX  ›  Python

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

  •  
  •   fengxiang · 2016-07-04 13:10:02 +08:00 · 3315 次点击
    这是一个创建于 2869 天前的主题,其中的信息可能已经有所发展或是发生改变。

    买了本 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 条回复    2016-07-04 18:05:52 +08:00
    jason0916
        1
    jason0916  
       2016-07-04 13:21:23 +08:00   ❤️ 1
    属性+ 1
    fengxiang
        2
    fengxiang  
    OP
       2016-07-04 13:29:57 +08:00
    这本书里一堆排版翻译错误,是不是我买到盗版了啊。
    mornlight
        3
    mornlight  
       2016-07-04 13:30:59 +08:00   ❤️ 1
    英文的语义应该是属性的意思:对象的数据 == 对象的属性
    kair
        4
    kair  
       2016-07-04 13:32:04 +08:00   ❤️ 1
    属性
    cxbig
        5
    cxbig  
       2016-07-04 14:00:22 +08:00   ❤️ 1
    跟对象 Object 相关的通常翻译成“属性”
    国内翻译技术文档的多半不是做技术出生,建议读英文版材料。
    glasslion
        6
    glasslion  
       2016-07-04 16:31:57 +08:00   ❤️ 2
    从中文含义上看, 属性比特性更合适。 但 python 还有 property 的概念, 还是在括号里备注上英文名比较好: "属性(attribute)"
    araraloren
        7
    araraloren  
       2016-07-04 16:51:08 +08:00   ❤️ 2
    特性一般都是 traits
    attribute 都会翻译成属性。。
    接楼上的, property 和 attribute 语义也是不同的。。
    onlyice
        8
    onlyice  
       2016-07-04 17:11:09 +08:00 via Android   ❤️ 1
    楼上说得都挺好,特性似乎比较少用在编程语言上,一般是讲产品特性
    troywinter
        9
    troywinter  
       2016-07-04 18:05:52 +08:00   ❤️ 1
    还是直接看英文吧,很多英文没办法准确翻译成中文
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1366 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:50 · PVG 07:50 · LAX 16:50 · JFK 19:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.