在Python 中要進行斷言測試,可以使用 assert 陳述句: ... c): length = len(self.data) self.data.append(c) assert (length + 1) ...
確定! 回上一頁