@ai_match_prediction · Post #12013 · 10.05.2026 г., 05:06
Scotland Premiership🏴 2026-05-10 11:00 UTC Celtic vs. Rangers Predicted outcome: Celtic✅ Predicted score: 3:2 Actual: Celtic 3:1 #Celtic#Rangers #Football#ScotlandPremiership
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #156 · 2 окт.
Те, кто в Python не первый день, хорошо знают, что на число можно умножить не только число, но и другие типы. Главное, чтобы у этих типов была реализация такой операции. # list >>> [1] * 3 [1, 1, 1] # tuple >>> (2, 3) * 3 (2, 3, 2, 3, 2, 3) # string >>> "A" * 3 "AAA" Так работает полиморфизм стандартных типов. Интересно здесь то, что это сработает и в том случае, когда порядок операндов обратный. То есть int умножить на [тип]. # list >>> 3 * [1] [1, 1, 1] # tuple >>> 3 * (2, 3) (2, 3, 2, 3, 2, 3) # string >>> 3 * "A" "AAA" Если хотите реализовать такое поведение в ваших классах то следует помнить два момента: 1. Если множитель справа, то вам нужно реализовать метод __mul__, наш класс это первый операнд, то есть слева. myType * 3 2. Если множитель слева, то вам нужно реализовать метод __rmul__, наш класс это второй операнд, справа. 3* myType Всё тоже самое можно делать и для других математических операторов. И если в этом примере действие и результат будут фактически одинаковыми, то бывают ситуации, когда это не так. Например, при умножении матриц имеет значение порядок операндов. Для других операторов, таких как деление или сдвиг, очень важно кто с какой стороны находится. >>> 2/4, 4/2 (0.5, 2.0) >>> 2<<3, 3<<2 (16, 12) >>> 100%15, 15%100 (10, 15) #tricks#basic
Пребарај: #scotlandpremiership
@ai_match_prediction · Post #12013 · 10.05.2026 г., 05:06
Scotland Premiership🏴 2026-05-10 11:00 UTC Celtic vs. Rangers Predicted outcome: Celtic✅ Predicted score: 3:2 Actual: Celtic 3:1 #Celtic#Rangers #Football#ScotlandPremiership
@ai_match_prediction · Post #11913 · 04.05.2026 г., 09:05
Scotland Premiership🏴 2026-05-04 16:30 UTC Heart Of Midlothian vs. Rangers Predicted outcome: Heart Of Midlothian✅ Predicted score: 2:1 Actual: Heart Of Midlothian 2:1 #HeartOfMidlothian#Rangers #Football#ScotlandPremiership
@ai_match_prediction · Post #11883 · 03.05.2026 г., 05:06
Scotland Premiership🏴 2026-05-03 11:00 UTC Hibernian vs. Celtic Predicted outcome: Hibernian❌ Predicted score: 2:1 Actual: Celtic 1:2 #Hibernian#Celtic #Football#ScotlandPremiership
@ai_match_prediction · Post #11832 · 01.05.2026 г., 13:06
Scotland Premiership🏴 2026-05-01 18:45 UTC Livingston vs. Aberdeen Predicted outcome: Livingston❌ Predicted score: 2:1 Actual: Draw 2:2 #Livingston#Aberdeen #Football#ScotlandPremiership
@ai_match_prediction · Post #11465 · 12.04.2026 г., 05:06
Scotland Premiership🏴 2026-04-12 11:00 UTC Falkirk vs. Rangers Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Rangers 3:6 #Falkirk#Rangers #Football#ScotlandPremiership
@ai_match_prediction · Post #11145 · 22.03.2026 г., 05:06
Scotland Premiership🏴 2026-03-22 12:30 UTC Dundee Utd vs. Celtic Predicted outcome: Celtic❌ Predicted score: 1:2 Actual: Dundee Utd 2:0 #DundeeUtd#Celtic #Football#ScotlandPremiership
@ai_match_prediction · Post #11964 · 08.05.2026 г., 13:05
Scotland Premiership🏴 2026-05-08 18:30 UTC Arbroath vs. Dunfermline Predicted outcome: Dunfermline❌ Predicted score: 1:2 Actual: Draw 0:0 #Arbroath#Dunfermline #Football#ScotlandPremiership
@ai_match_prediction · Post #11932 · 05.05.2026 г., 13:05
Scotland Premiership🏴 2026-05-05 18:45 UTC Dunfermline vs. Arbroath Predicted outcome: Dunfermline✅ Predicted score: 2:1 Actual: Dunfermline 1:0 #Dunfermline#Arbroath #Football#ScotlandPremiership
@ai_match_prediction · Post #12107 · 15.05.2026 г., 13:05
Scotland Premiership🏴 2026-05-15 18:45 UTC Partick vs. Dunfermline Predicted outcome: Dunfermline Predicted score: 1:2 Current: 0:1 37' #Partick#Dunfermline#Live #Football#ScotlandPremiership
@ai_match_prediction · Post #11317 · 05.04.2026 г., 05:06
Scotland Premiership🏴 2026-04-05 13:00 UTC Livingston vs. Heart Of Midlothian Predicted outcome: Heart Of Midlothian❌ Predicted score: 1:2 Actual: Draw 2:2 #Livingston#HeartOfMidlothian 2026-04-05 15:30 UTC Dundee vs. Celtic Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Celtic 1:2 #Dundee#Celtic #Football#ScotlandPremiership
@ai_match_prediction · Post #12082 · 13.05.2026 г., 13:05
Scotland Premiership🏴 2026-05-13 19:00 UTC Heart Of Midlothian vs. Falkirk Predicted outcome: Heart Of Midlothian✅ Predicted score: 2:1 Actual: Heart Of Midlothian 3:0 #HeartOfMidlothian#Falkirk 2026-05-13 19:00 UTC Motherwell vs. Celtic Predicted outcome: Motherwell❌ Predicted score: 2:1 Actual: Celtic 2:3 #Motherwell#Celtic 2026-05-13 19:00 UTC Rangers vs. Hibernian Predicted outcome: Rangers❌ Predicted score: 2:1 Actual: Hibernian 1:2 #Rangers#Hibernian #Football#ScotlandPremiership
@ai_match_prediction · Post #11859 · 02.05.2026 г., 09:06
Scotland Premiership🏴 2026-05-02 14:00 UTC Kilmarnock vs. Dundee Utd Predicted outcome: Dundee Utd❌ Predicted score: 2:3 Actual: Kilmarnock 3:0 #Kilmarnock#DundeeUtd 2026-05-02 14:00 UTC Dundee vs. ST Mirren Predicted outcome: Dundee✅ Predicted score: 2:1 Actual: Dundee 1:0 #Dundee#STMirren 2026-05-02 14:00 UTC Falkirk vs. Motherwell Predicted outcome: Motherwell❌ Predicted score: 1:2 Actual: Falkirk 1:0 #Falkirk#Motherwell #Football#ScotlandPremiership