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 слични објави

Пребарај: #assab

当前筛选 #assab清除筛选
Addis Standard

@addisstandardeng · Post #21555 · 28.02.2026 г., 06:49

#Abiy’s vision of #Ethiopia includes a seaport in #Eritrea. Some see a looming conflict To his supporters, Ethiopia’s prime minister is a renaissance man trying to reimagine the old greatness of his country. To some others, Abiy Ahmed is a provocateur who could light a fire in the restive Horn of Africa region as he pushes for sovereign access to the sea via an unfriendly neighbor. In a stadium in southern Ethiopia last Sunday, Abiy staged a provocative parade of Ethiopia’s special forces as they demonstrated maneuvers in a spectacle widely seen as intended for neighboring Eritrea to see. A banner proclaimed Ethiopia would not remain landlocked whether “you like it or not,” with imagery showing a soldier breaking a door while aiming for the port of #Assab. Assab has been part of Eritrea since 1993, when it broke away from Ethiopia after decades of guerrilla warfare. Most of Ethiopia’s trade goes through... https://apnews.com/article/ethiopia-prime-minister-abiy-eritrea-01542a9d7954e0d2f94a7dbe7b00340e

Addis Standard

@addisstandardeng · Post #21719 · 14.03.2026 г., 11:49

News: Renewed #Ethiopia–#Eritrea war could ignite conflict spanning 10–15 countries on three continents, trigger “Africa’s Second World War,” expert warns A renewed war between Ethiopia and Eritrea could ignite a broader conflict involving 10–15 countries across three continents and risk becoming “#Africa’s Second World War,” a conflict expert has warned, according to a report by Anadolu Agency. Speaking to Anadolu Agency, Kjetil Tronvoll, professor of peace and conflict studies at #Oslo New University College, said tensions between the two neighboring countries have sharply escalated and could draw in regional and international actors if fighting erupts. The expert suggested that regional and international actors could still help prevent escalation by increasing diplomatic engagement, pressing Eritrea to end interference in Ethiopia’s internal affairs, encouraging negotiations over Ethiopia’s potential use of the port of #Assab....... Read more: https://addisstandard.com/?p=55840

Addis Standard

@addisstandardeng · Post #21930 · 03.04.2026 г., 09:39

News: AI-generated war narratives fuel #Ethiopia–Eritrea tensions online: report Artificial intelligence (#AI) generated images and videos portraying a hypothetical #Ethiopian military takeover of #Eritrea’s strategic port of #Assab are increasingly shaping online narratives and inflaming tensions between the two countries, according to a report by #AFP. One of the most prominent creators, 24-year-old Ethiopian law graduate Eliyas Kebede Zemedkun, who has more than 87,000 Facebook followers, told AFP he has spent much of 2026 producing AI-generated content depicting Ethiopia occupying Assab to promote what he described as “Ethiopia’s national narrative.” “I am also motivated to use AI-generated content to challenge narratives that try to downgrade the national army through different demoralizing tactics,” he said, adding that he uses free platforms such as #ChatGPT and #Gemini alongside editing software to create the material. Read more: https://addisstandard.com/?p=56283