TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #169 · 21 окт.

А знаете ли вы, что в Bash есть особая переменная "$_" ? Из описания можно узнать, что в переменную "$_" помещается последний аргумент последней команды. Что-то знакомое? Конечно, в Python есть примерно тоже самое. Мы знаем, что дата первого релиза Bash (8 июня 1989) несколько раньше чем первый релиз Python (20 февраля 1991). Если учесть, что по задумке автора Python это агрегация самых успешных практик отовсюду, можно ли сказать что именно эта фишка к нему пришла из Bash? Ни подтверждения ни опровержения я пока не нашел. Давайте просто считать это совпадением 😉 А как это может быть полезно в Bash? Приведу простой пример, который оценят те, кто часто работает в терминале. Допустим, нам надо создать директорию и зайти в неё. Что обычно делаем? :~$ mkdir foldername :~$ cd foldername :~/foldername$ Как это сделать в одну команду? :~$ mkdir foldername && cd foldername :~/foldername$ Уже лучше, но хочется короче, без повторов. Вот тут и пригодится наша переменная. Напомню, что в неё сохраняется последний аргумент предыдущей команды. :~$ mkdir foldername && cd $_ :~/foldername$ _________________ PS. Символы "&&"" разделяют команды и означают, что требуется выполнить вторую команду только если первая завершилась успешно. #linux#tricks

Резултати

Пронајдени 2 слични објави

Пребарај: #messier87

当前筛选 #messier87清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #615 · 11.01.2026 г., 12:21

🪐 In the galaxy Messier 87, located about 55 million light-years from Earth, the speed of light helps astronomers study powerful jets that erupt from its supermassive black hole. Light from these jets takes millions of years to cross the vast gulf to Earth, allowing scientists to observe how particles accelerated close to light speed behave over incredible distances and time, giving a glimpse into the dynamics of some of the universe’s most energetic events. ✨ #speedoflight⚡#messier87⚡#blackhole⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #679 · 14.02.2026 г., 12:21

🪐 In the Virgo constellation, astronomers study galaxy clusters like Virgo Cluster to understand the universe’s endgame, using real data to measure how the mysterious force called dark energy is speeding up cosmic expansion. If this expansion keeps accelerating, even giant galaxies such as Messier 87 will someday drift so far apart that their light can no longer reach each other, resulting in a cold, ever-darkening universe filled with isolated islands of stars. ✨ #VirgoCluster⚡#darkenergy⚡#Messier87⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​