如果 attrOrNot 是表中的字段则调用 set(...) 放入数据
否则调用 put(...) 放入数据
343817
public M setOrPut(String attrOrNot, Object value) {
		Table table = _getTable();
		if (table != null && table.hasColumnLabel(attrOrNot)) {
			_getModifyFlag().add(attrOrNot);	// Add modify flag, update() need this flag.
		}
		
		attrs.put(attrOrNot, value);
		return (M)this;
	}
705812
def add(self, attr, item):
        
        return self.set(attr, operation.Add([item]))
262387
function set(key, value, opt_force, opt_data) {

    var type   = this.getType(key);
    var old    = this[type][key];
    var isFire = false;

    //设置value
    if (type === 'nodes'){
      this._setNode(key, value);
    } else{
      this[type][key] = value;
    }

    //判断时候触发事件
    if (type === 'attributes'){
      if (value != old || opt_force === true) isFire = true;
    } else {
      if (opt_force) isFire = 1;
    }

    //触发事件
    if (isFire && opt_force !== false){

      opt_data = opt_data || {};
      opt_data.old = old;
      opt_data.now = value;
      opt_data.target = this;

      this.emit('change:' + key, opt_data);
      isFire === true && this.emit('change:' + key + ':'+value, opt_data);

    }

    return this;
  }
805874
def set_attrs(self):
        
        self.attrs.encoding = self.encoding
        self.attrs.errors = self.errors
402742
T at(Integer i) {
        if (i == null) {
            return null;
        }
        if (i >= _array.size()) {
            return null;
        }
        return _array.get(i);
    }
698883
function makeSet( length ) {
    var res = new Array( length );
    var i = -1;

    while( ++i < length ) {
        res[i] = i;
    }

    return new _set2.default( res );
}
415091
function(attrs, value, opt) {

        var args = Array.from(arguments);
        if (args.length === 0) {
            return this.get('attrs');
        }

        if (Array.isArray(attrs)) {
            args[0] = ['attrs'].concat(attrs);
        } else if (joint.util.isString(attrs)) {
            // Get/set an attribute by a special path syntax that delimits
            // nested objects by the colon character.
            args[0] = 'attrs/' + attrs;

        } else {

            args[0] = { 'attrs' : attrs };
        }

        return this.prop.apply(this, args);
    }
1292210
public void setAttributes(Map<String, Object> attr) {
    pendingAttributes.clear();
    pendingAttributes.putAll(attr);
  }
648510
def call_set_attr(node: Node, key: str, value):
    """"""
    node.set_attr(key, value)
146092
public Item withInt(String attrName, int val) {
        checkInvalidAttrName(attrName);
        return withNumber(attrName, Integer.valueOf(val));
    }
630156
def _do_attr(self, n, value):
        '''''''

        W = self.write
        W(' ')
        W(n)
        W('="')
        s = string.replace(value, "&", "&amp;")
        s = string.replace(s, "<", "&lt;")
        s = string.replace(s, '"', '&quot;')
        s = string.replace(s, '\011', '&#x9')
        s = string.replace(s, '\012', '&#xA')
        s = string.replace(s, '\015', '&#xD')
        W(s)
        W('"')
711201
function(attr, amount) {
      if (_.isUndefined(amount) || _.isNull(amount)) {
        amount = 1;
      }
      return this.set(attr, new Parse.Op.Increment(amount));
    }
1371146
def set_attrs(self, **attrs):
        """"""
        commands = tuple(self.values())
        for name, value in attrs.items():
            for command in commands:
                setattr(command, name, value)
1186522
function set(i, item, array)
{
	if (i < 0 || length(array) <= i)
	{
		return array;
	}
	return unsafeSet(i, item, array);
}
885516
function(setname, cb){
      client.smembers(setname, function(e,d){
        if(e) return console.error(e)
        console.log("\nPrinting set members for set %s", setname)
        console.dir(d)
        cb && cb(e,d)
      })
    }
734638
def put(self, *items) -> "AttrIndexedDict":
        ""
        for item in items:
            self.data[getattr(item, self.attr)] = item
        return self
1152097
def set_char( at , char )
      raise "char not fixnum #{char.class}" unless char.kind_of? ::Integer
      index = range_correct_index(at)
      set_internal_byte( index , char)
    end