@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 #309 · 2 фев.
Метод строки split() разделяет строку на несколько строк по указанному символу >>> "a_b_c".split('_') ['a', 'b', 'c'] Можно указать максимальное количество разделений >>> "a_b_c".split('_', 1) ['a', 'b_c'] Или резать с другой стороны с помощью rsplit() (right split) >>> "a_b_c".rsplit('_', 1) ['a_b', 'c'] А что будет если оставить аргументы пустыми? >>> "a_b_c".split() ['a_b_c'] Получаем список с одним элементом, потому что по умолчанию используется пробельный символ. >>> "a b c".split() ['a', 'b', 'c'] То есть это равнозначно такому вызову? >>> "a b c".split(" ") ['a', 'b', 'c'] Кажется да, но нет! Давайте попробуем добавить пробелов между буквами >>> "a b c".split(" ") ['a', '', '', 'b', '', '', 'c'] И вот картина уже не так предсказуема 😕 А вот что будет по умолчанию >>> "a b c".split() ['a', 'b', 'c'] Всё снова красиво! 🤩 По умолчанию в качестве разделителя используется любой пробельный символ, будь то табуляция или новая строка. Включая несколько таких символов идущих подряд. А также игнорируются пробельные символы по краям строки. >>> "a\t b\n c ".split() ['a', 'b', 'c'] Аналогичный способ можно собрать с помощью регулярного выражения. Но пробелы по краям строки придется обрабатывать дополнительно. >>> import re >>> re.split(r"\s+", ' a b c '.strip()) ['a', 'b', 'c'] Здесь тоже можно указать количество разделений >>> re.split(r"\s+", 'a b c', 1) ['a', 'b c'] А что если мы хотим написать красиво, то есть split() без аргументов, но при этом указать количество разделений? В этом случае первым аргументом передаём None >>> "a\n b c".split(None, 1) ['a', 'b c'] Данный метод не учитывает строки с пробелами, взятые в кавычки 'a "b c" '.split() ['a', '"b', 'c"'] Но для таких случаев есть другие способы. #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