Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
def my_func():
return "Hello"
my_func.custom_attr = 5
print(my_func.custom_attr)
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
class MetaClass(type):
def __new__(cls, name, bases, dct):
dct['meta_value'] = 100
return super().__new__(cls, name, bases, dct)
def __init__(cls, name, bases, dct):
cls.meta_value += len(name)
class A(metaclass=MetaClass):
pass
class B(metaclass=MetaClass):
pass
print(A.meta_value + B.meta_value)
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
def increment(x):
x += 10
return x
value = 5
new_value = increment(value)
print(value + new_value)
#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
grades = {'Alice': 85, 'Bob': 90}
grades['Charlie'] = grades.get('Alice', 0) + 5
del grades['Alice']
print(sum(grades.values()))#Python
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Находки Программиста
Цена: ~1900₽
Рейтинг: 4.8
Отзывов: 3.552
Вертикальная беспроводная мышь с поддержкой Bluetooth 5.2, Bluetooth 3.0 и 2.4 ГГц. Эргономичная форма помогает снизить нагрузку на кисть во время долгой работы за компьютером, а возможность подключения к нескольким устройствам удобна для тех, кто переключается между рабочим ноутбуком, домашним ПК и планшетом.
#мышь #вертикальная
Больше товаров - Находки Программиста
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM