如何检查数组是否为空?我这样做了:
if not self.table[5] is None:
这是正确的方法吗?
python
如何在元组中存储元素?
我这样做了:
for i in range (0, capacity): for elements in self.table[i]: # STORE THE ALL THE ELEMENTS IN THE TUPLE
python tuples store
python ×2
store ×1
tuples ×1