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

Резултати

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

Пребарај: #bikes

当前筛选 #bikes清除筛选
Car News

@car_news · Post #1891 · 16.03.2026 г., 13:28

🇯🇵 Yamaha releases the world’s first production scooter with an airbag 🏍 The new Tricity 300 (2026) features a collision detection system that deploys an airbag from under the handlebar during an accident. 🤞 Tests show that using this system reduces life-threatening risk by more than 30 times. 💰 Sales are expected to start next quarter. The official price hasn’t been announced yet, but the current Tricity 300 version costs around $10,000. #bikes@Car_News

Hashtags

Car News

@car_news · Post #1650 · 08.11.2025 г., 14:45

🏍Brabus unveils motorcycle priced at €42,000 📰 German tuning house Brabus has presented the exclusive 1400 R Signature Edition bike, based on the KTM 1390 Super Duke R EVO. 🔎 The motorcycle features carbon bodywork, 17-inch Monoblock II EVO Platinum Edition wheels, leather seats with Dinamica microfiber, and special dashboard graphics. 🐎 The 1.35-liter V2 engine retains its 190 hp and 145 Nm output and is complemented by a Brabus exhaust system. The bike is equipped with WP-APEX semi-active suspension and Brembo brakes. #bikes#Brabus@Car_News

Car News

@car_news · Post #1591 · 17.10.2025 г., 12:40

📰Yamaha goes full cyberpunk 🏍 This is the MOTOROiD 2, a motorcycle from the future. 🔎 It features a self-balancing system that keeps the bike upright and prevents it from tipping over. The bike can recognize its owner’s face and respond to gestures. Instead of traditional handlebars, it has integrated grips built into the body and supports autonomous control. #Yamaha#bikes@Car_News

Bali News

@balinews · Post #346 · 11.03.2025 г., 12:00

🛵Bali governor wants to ban tourists from driving bikes...again 😠 Bali Governor Wayan Koster has decided to revisit the topic of tourists driving motorcycles. He complained that foreigners are recklessly riding motorcycles without clothes and without helmets. 📰 The governor plans to introduce a regional PERDA regulation banning tourists from driving motorcycles. The measure is proposed in response to frequent traffic violations by commuters and is aimed at improving safety and order on the roads. 🤔Such initiatives have arisen before, but did not find support from the authorities and were not implemented. It is still unknown whether this decree will pass now, as the Minister of Tourism in Indonesia has changed since last time. @BaliNews #transport#bikes#rules#tourism