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

Резултати

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

Пребарај: #idiom

当前筛选 #idiom清除筛选
English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #60511 · 18.11.2025 г., 16:22

#Idiom 💢Go off on a tangent Or 💢 Go off at a tangent 🔰If a person or piece of writing goes off on a tangent or goes off at a tangent, they start saying or thinking something that is not directly connected with what they were saying or thinking before 💠Note:- In geometry, a tangent is a straight line which touches a curve at one point 🕸 Ex:- Our teacher would occasionally go off on a tangent and start talking about something totally unrelated to the textbook. 💠Note:- You can use other verbs instead of go 🕸 Ex:- The book's theme wandersoff on a tangent now and then.

Hashtags

English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #59847 · 03.07.2025 г., 21:40

#Idiom 🕸People in society🕸 ❄️A self-made man ♣️ A person who is rich and successful because they have worked hard, not because they were born into a rich family ❄️The chattering classes ♣️ Educated people who enjoy discussing social, political and cultural issues ❄️A second-class citizen ♣️ Someone is treated as if they are less important than others in society ❄️The grass roots ♣️ Ordinary people in a political or sporting organisation, not the leaders ❄️ The silent majority ♣️ A large number of people who do not express their opinions publicly ❄️ The (men in) grey suits ♣️ People in business or politics with a lot of influence or power, although they are not well known to the public ❄️Public enemy number one ♣️ Smth or someone that a lot of people dislike or disapprove of ❄️New kid on the block ♣️ Someone who is new in a place or organisation and has many things to learn about it (informal).

Hashtags

English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #59742 · 15.05.2025 г., 05:36

#Idiom 💢Even exchange: a trade of equal value; when you return something and take something else that costs the same price ✨ Ex: If you return that jacket and get this sweater instead, it will be an even exchange. They're both $39.99.

Hashtags

123•••10•••1213
ПретходнаСтраница 1 од 13Следна