……
operator.delitem(a, b)
移除索引号 b 上的值 a。
……
operator.getitem(a, b)
返回索引号 b 上的值 a。
……
operator.setitem(a, b, c)
将索引号 b 上的值 a 设为 c。
原文:
……
operator.delitem(a, b)¶
Remove the value of a at index b.
……
operator.getitem(a, b)
Return the value of a at index b.
……
operator.setitem(a, b, c)
Set the value of a at index b to c.
提议:索引号 b 上的值 a 也许应该改为 在 a 中索引号 b 上的值 或者 a 在索引号 b 上的值 之类的?
1. 【第一处】错字《collections --- 容器数据类型》
列表
应该改为字符串
。2. 【第二处】译文不准确《operator --- 标准运算符替代函数》
位置:https://docs.python.org/zh-cn/3/library/operator.html#operator.delitem
译文:
原文:
提议:
索引号 b 上的值 a
也许应该改为在 a 中索引号 b 上的值
或者a 在索引号 b 上的值
之类的?