@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
Hashtags
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
Пребарај: #animals
@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
Hashtags
@googlefactss · Post #40547 · 16.01.2026 г., 23:01
The scientific name for "coyote" is canis latrans, which literally means "barking dog", a fitting description for its wide variety of yips, howls, and barks used for communication, with the name coming from the Aztec word for the animal. @googlefactss#animals
Hashtags
@googlefactss · Post #40082 · 13.11.2025 г., 20:50
Female elephants stay with the same herd their entire lives. Males only remain with the herd until they are 12 to 15 years old. The Male elephants then either join a "bachelor" herd or they live alone only rejoining the females during mating season. @googlefactss#animals
Hashtags
@googlefactss · Post #39956 · 27.10.2025 г., 14:20
A zebra's teeth grow continuously throughout its lifetime, offsetting the wear of constant grazing. @googlefactss#animals
Hashtags
@googlefactss · Post #39898 · 03.10.2025 г., 11:12
The world’s largest bat is the giant golden-crowned flying fox, a rare fruit bat. It has a wingspan of 5 to 6 feet (1.5 to 1.8 m). @googlefactss#animals
Hashtags
@profile_pictures_tm · Post #16014 · 15.09.2023 г., 14:50
#Animals❤
Hashtags
@profile_pictures_tm · Post #15228 · 18.07.2023 г., 18:01
#Animals❤
Hashtags
@profile_pictures_tm · Post #14334 · 04.05.2023 г., 19:25
#Animals
Hashtags
@profile_pictures_tm · Post #12335 · 03.12.2022 г., 20:08
#Animals
Hashtags
@ekologuzenglish · Post #11860 · 09.03.2026 г., 15:02
#Animals Animals help each other too, and sometimes they do it more sincerely than humans. In nature, there are many amazing examples of cooperation: birds warn their flock about danger, dolphins support injured companions, elephants protect their calves, and some animals share food with those who are weak. This invisible bond of support and care is part of the harmony of nature. In the wild, survival often depends on cooperation and strong social connections. By observing animals, we learn a simple truth: the world is sustained not only by strength, but also by compassion, trust, and mutual help. 🐾🌿☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.
Hashtags
@profile_pictures_tm · Post #11131 · 27.09.2022 г., 05:50
#Animals
Hashtags
@dailychannels · Post #6553 · 19.12.2025 г., 01:00
Channel: Dangerous Earth Members: ~5.44K 💢 Username: @dangerousground Description: Craters, volcanoes, avalanches, brutal animal scenes, deadly attacks by predators and many other strange displays of the forces of nature and its inhabitants. Buy ads: https://telega.io/c/dangerousground 🏷 Tags: #animals https://telegramchannels.me/channels/dangerousground
Hashtags