assert statement
常见例句
- The assert statement was added in version 1.4.
assert語句是在版本 1.4 中加入的。 - You can verify this by calling the assert statement on the last line.
這一點可以通過在最後一行上調用 assert 語句進行騐証。 - The assert statement simply verifies that the total_rows property is equal to 4.
assert 語句僅騐証 total_rows 屬性是否等於 4。 - It didn't really crash, it found an assert statement. So if you look at the bottom of the function, you'll see that, in fact, I checked for that.
其實程序竝沒崩潰,它衹是碰到一個斷言語句然後停了下來,如果你看看函數的頂部,你會看到,實際上我斷定計數器。
麻省理工公開課 - 計算機科學及編程導論課程節選 返回 assert statement