>>> str(number)
'[5, 2, 9]'
If multi is set to True, execute() is able to execute multiple statements specified in the operation string.
operation = 'SELECT 1; INSERT INTO t1 VALUES (); SELECT 2' for result in cursor.execute(operation, multi=True): if result.with_rows:
class A:
def f(self):
print (f'A.f() with self = {self}')
class B(A):
def f(self):
print (f'B.f() with self = {self}')
super().f()
class C(B): pass
c = C()
c.f()
B.f() with self = <__main__.C object at 0x6ffffe7e1d0>
A.f() with self = <__main__.C object at 0x6ffffe7e1d0>
const time = 5000;
const step = 10;
let n = {};
function timer(num, element) {
let selector;
let i = document.querySelectorAll("." + element);
n[element] = 0;
i.forEach(function (elem) {
selector = elem;
});
let t = Math.round(time / (num / step));
let inter = setInterval(function () {
n[element] = n[element] + step;
if (n[element] === num || n[element] >= num) {
clearInterval(inter);
}
selector.innerHTML = n[element];
}, t);
}
timer(1000, "reject1");
timer(610, "reject2");
timer(410, "reject3");
len(number)
если нужна длина списка