纪律和规则不只是约束我们,而是在纠正我们的错误,培养我们的良好习惯,所以,我们要规范自己的一言一行。
The discipline and rules not only restrain us, but also correct our mistakes, and develop our good habits. So we have to regulate our behavior.
最后发现其解决方式还是非常简单的(只需要100行Python代码),它基于以下两个想法:约束传播和查找。
It turns out to be quite easy (about 100 lines of [Python] code) using two ideas: constraint propagation and search.
第15、16、17行定义了约束。
最后,第23到26行声明了这个问题的约束,这在前面已经讨论过了。
Finally, lines 23 through 26 declare the problem's constraints, discussed above.
当将唯一约束附加到允许空值的列时,请确保在约束的列中最多有一行包含空值。
When you attach a unique constraint to a column allowing null values, you ensure that at most one row will have a null value in the constrained column.
索引是一种提供快速访问表行或强制某些约束的机制。
An index is a mechanism for providing fast access to table rows or for enforcing certain constraints.
在第35行上的合并成功了,因为该处没有发生任何约束冲突。
The merge becomes successful at line 35, because you don't violate any constraint there.
主键是确保每个表都不包含重复行的约束。
A primary key is a constraint that assures that each table contains no duplicate rows.
第 23、24和25行上的约束也是类似地进行声明的。
The constraints on lines 23, 24, and 25 are declared in a similar way.
第22行到28行为每周的每天定义了一个约束。
Lines 22 through 28 define one constraint for each day of the week.
利用这些规则,可以通过对无约束网络的不定导纳矩阵进行初等的行、列变换得到约束网络的导纳矩阵。
With the rules, the nodal admittance matrix can be obtained by simple row and column transformations in the unconstrained indefinite-admittance matrix.
人若向耶和华许愿或起誓,要约束自己,就不可食言,必要按口中所出的一切话行。
When a man makes a vow to the LORD or takes an oath to obligate himself by a pledge, he must not break his word but must do everything he said.
未能启用约束。一行或多行中包含违反非空、唯一或外键约束的值。
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
因此,我们需要两个约束:一个用于火车,另外一个用于士兵,正如我们在第 25行中看到的一样。
Therefore, we need two of them, one for trains and one for soldiers, as you can see on line 25.
每个定义包括两行:第一行是一组变量,第二行是一组约束。
A specification consists of two lines: a list of variables on one line followed by a list of constraints on the next line.
每个定义包括两行:第一行是一组变量,第二行是一组约束。
A specification consists of two lines: a list of variables on one line followed by a list of constraints on the next line.
应用推荐