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

Резултати

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

Пребарај: #whiteboard

当前筛选 #whiteboard清除筛选
𝐋abyrinth

@labyrinthclassh · Post #9336 · 11.12.2021 г., 12:36

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8837 · 07.11.2021 г., 01:17

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8193 · 14.10.2021 г., 07:33

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

𝐋abyrinth

@labyrinthclassh · Post #8012 · 07.10.2021 г., 10:23

˖ ࣪⭑ Dingg.. Dongg.. 🛎 Check it out students, the bell has rung. It’s such an honour to present our new #Whiteboard. Dont forget to read our school rules before using it hoho. Have a wondrous day ahead! ♡⸝⸝

Hashtags

GitHub Trends

@githubtrending · Post #15082 · 21.08.2025 г., 11:30

#typescript#collaboration#drawing#flowchart#localfirst#mindmap#productivity#whiteboard Drawnix is a free, open-source online whiteboard tool that combines mind maps, flowcharts, and free drawing in one platform. It supports features like image insertion, undo/redo, infinite canvas zooming, and exporting to PNG or JSON. It works on mobile devices and supports markdown and mermaid syntax for easy diagram creation. Built on a plugin architecture, it allows flexible development and integration with different UI frameworks. Using Drawnix helps you organize ideas visually, collaborate smoothly, and save your work automatically, making creative work and teamwork easier and more efficient. https://github.com/plait-board/drawnix