git remote add origin git@github.com:username/my_repository.git
git push -u origin mastergetPersonalData('name').first
getPersonalData('name')['first'] this.state = {prodaction: []}items[i].ondragstart = function() {
return false;
};По поводу двойного, могли бы разъяснить. Понял, что декарируются _ИмяКласса__метод, но как это выглядит на практике не совсем понимаю
class Base:
def __init__(self, price):
self.__price = price
obj = Base(99)
print(obj.__price) #ошибка
print(obj._Base__price) #выведет значение атрибута __priceimport functools
matrix = [[]]
result = functools.reduce(lambda a,x: a + sum(x), matrix, 0)
print(result)