@ai_match_prediction · Post #12037 · 10.05.2026 г., 17:05
Colombia Primera A🇨🇴 2026-05-10 23:10 UTC Once Caldas vs. Junior Predicted outcome: Once Caldas❌ Predicted score: 2:1 Actual: Junior 0:1 #OnceCaldas#Junior #Football#ColombiaPrimeraA
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #oncecaldas
@ai_match_prediction · Post #12037 · 10.05.2026 г., 17:05
Colombia Primera A🇨🇴 2026-05-10 23:10 UTC Once Caldas vs. Junior Predicted outcome: Once Caldas❌ Predicted score: 2:1 Actual: Junior 0:1 #OnceCaldas#Junior #Football#ColombiaPrimeraA
@ai_match_prediction · Post #12087 · 13.05.2026 г., 17:05
Colombia Primera A🇨🇴 2026-05-13 23:00 UTC Deportivo Pasto vs. Deportes Tolima Predicted outcome: Deportivo Pasto❌ Predicted score: 2:1 Actual: Deportes Tolima 0:2 #DeportivoPasto#DeportesTolima 2026-05-14 01:15 UTC Junior vs. Once Caldas Predicted outcome: Junior❌ Predicted score: 2:1 Actual: Draw 2:2 #Junior#OnceCaldas #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11136 · 21.03.2026 г., 17:05
Colombia Primera A🇨🇴 2026-03-21 23:20 UTC Once Caldas vs. Millonarios Predicted outcome: Once Caldas❌ Predicted score: 2:1 Actual: Millonarios 1:4 #OnceCaldas#Millonarios 2026-03-22 01:30 UTC Atletico Nacional vs. Internacional de Bogota Predicted outcome: Atletico Nacional✅ Predicted score: 2:1 Actual: Atletico Nacional 3:0 #AtleticoNacional#InternacionaldeBogota #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11407 · 10.04.2026 г., 13:06
Colombia Primera A🇨🇴 2026-04-10 20:30 UTC Deportivo Pereira vs. Once Caldas Predicted outcome: Once Caldas❌ Predicted score: 1:2 Actual: Draw 0:0 #DeportivoPereira#OnceCaldas 2026-04-11 01:05 UTC Deportivo Pasto vs. Deportes Tolima Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Deportivo Pasto 1:0 #DeportivoPasto#DeportesTolima #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11636 · 20.04.2026 г., 17:05
Colombia Primera A🇨🇴 2026-04-20 23:20 UTC Once Caldas vs. Internacional de Bogota Predicted outcome: Once Caldas✅ Predicted score: 2:1 Actual: Once Caldas 2:1 #OnceCaldas#InternacionaldeBogota 2026-04-21 01:30 UTC Atletico Nacional vs. Bucaramanga Predicted outcome: Atletico Nacional✅ Predicted score: 2:1 Actual: Atletico Nacional 2:0 #AtleticoNacional#Bucaramanga #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11214 · 29.03.2026 г., 17:05
Colombia Primera A🇨🇴 2026-03-29 21:10 UTC Internacional de Bogota vs. Junior Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Junior 0:1 #InternacionaldeBogota#Junior 2026-03-29 23:20 UTC Deportivo Pasto vs. Atletico Nacional Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Atletico Nacional 1:2 #DeportivoPasto#AtleticoNacional 2026-03-30 15:00 UTC Llaneros vs. Once Caldas Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 1:1 #Llaneros#OnceCaldas #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11772 · 26.04.2026 г., 13:05
Colombia Primera A🇨🇴 2026-04-26 21:00 UTC Águilas Doradas vs. Once Caldas Predicted outcome: Once Caldas❌ Predicted score: 1:2 Actual: Draw 2:2 #guilasDoradas#OnceCaldas 2026-04-26 23:10 UTC Llaneros vs. Alianza Valledupar Predicted outcome: Llaneros❌ Predicted score: 2:1 Actual: Draw 0:0 #Llaneros#AlianzaValledupar 2026-04-27 01:20 UTC Internacional de Bogota vs. Chico Predicted outcome: Internacional de Bogota✅ Predicted score: 2:0 Actual: Internacional de Bogota 4:0 #InternacionaldeBogota#Chico #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11244 · 02.04.2026 г., 13:05
Colombia Primera A🇨🇴 2026-04-02 19:00 UTC Chico vs. Deportivo Pereira Predicted outcome: Chico✅ Predicted score: 2:1 Actual: Chico 1:0 #Chico#DeportivoPereira 2026-04-02 21:10 UTC America de Cali vs. Bucaramanga Predicted outcome: America de Cali✅ Predicted score: 1:0 Actual: America de Cali 2:0 #AmericadeCali#Bucaramanga 2026-04-02 23:20 UTC Jaguares vs. Millonarios Predicted outcome: Millonarios❌ Predicted score: 1:2 Actual: Jaguares 1:0 #Jaguares#Millonarios 2026-04-03 01:30 UTC Once Caldas vs. Independiente Medellin Predicted outcome: Draw✅ Predicted score: 2:2 Actual: Draw 1:1 #OnceCaldas#IndependienteMedellin #Football#ColombiaPrimeraA
@ai_match_prediction · Post #11811 · 29.04.2026 г., 13:05
Colombia Primera A🇨🇴 2026-05-01 23:00 UTC Once Caldas vs. Atletico Nacional Predicted outcome: Atletico Nacional❌ Predicted score: 1:2 Actual: Once Caldas 1:0 #OnceCaldas#AtleticoNacional 2026-05-02 19:00 UTC Chico vs. Llaneros Predicted outcome: Llaneros❌ Predicted score: 1:2 Actual: Chico 3:0 #Chico#Llaneros 2026-05-02 21:00 UTC Jaguares vs. Cucuta Predicted outcome: Jaguares✅ Predicted score: 3:2 Actual: Jaguares 2:0 #Jaguares#Cucuta 2026-05-03 20:30 UTC Independiente Medellin vs. Águilas Doradas Predicted outcome: Independiente Medellin❌ Predicted score: 2:1 Actual: Águilas Doradas 1:2 #IndependienteMedellin#guilasDoradas 2026-05-03 20:30 UTC Santa Fe vs. Internacional de Bogota Predicted outcome: Santa Fe✅ Predicted score: 2:1 Actual: Santa Fe 3:1 #SantaFe#InternacionaldeBogota 2026-05-03 20:30 UTC Alianza Valledupar vs. Millonarios Predicted outcome: Millonarios❌ Predicted score: 0:1 Actual: Draw 2:2 #AlianzaValledupar#Millonarios 2026-05-03 20:30 UTC Deportes Tolima vs. Deportivo Cali Predicted outcome: Deportes Tolima❌ Predicted score: 2:1 Actual: Draw 1:1 #DeportesTolima#DeportivoCali 2026-05-03 20:30 UTC Fortaleza FC vs. Bucaramanga Predicted outcome: Fortaleza FC✅ Predicted score: 2:1 Actual: Fortaleza FC 2:1 #FortalezaFC#Bucaramanga 2026-05-03 22:45 UTC Junior vs. Deportivo Pasto Predicted outcome: Junior✅ Predicted score: 2:1 Actual: Junior 4:3 #Junior#DeportivoPasto 2026-05-03 22:45 UTC America de Cali vs. Deportivo Pereira Predicted outcome: America de Cali✅ Predicted score: 3:0 Actual: America de Cali 1:0 #AmericadeCali#DeportivoPereira #Football#ColombiaPrimeraA