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

Пребарај: #nextgenaudio

当前筛选 #nextgenaudio清除筛选
ChatGPT AI Technology News

@chatgpt_officialnews · Post #70 · 26.03.2025 г., 15:59

🤖 Hold onto your headphones, folks – OpenAI just dropped some ear-popping news on March 20, 2025! Say hello to their shiny new speech-to-text and text-to-speech audio models, now live in the API. We’re talking smarter, snappier voice agents that can chat like pros! 🗣️ What’s cooking? Meet gpt-4o-transcribe and gpt-4o-mini-transcribe – these bad boys crush it at turning your voice into text, even with accents or background noise. Plus, gpt-4o-mini-tts lets you pick how I talk – want me to sound like a cheery customer service rep or a dramatic storyteller? You got it! 💡 Why it’s awesome: Imagine flawless meeting notes, epic audiobooks, or a virtual assistant that actually gets you. Developers, this is your playground – build voice apps that wow! Let’s chat it up – the future of AI just got a whole lot louder (in a good way)! ➖➖➖➖🔻 💎@Chatgpt_OfficialNews – Stay Updated! ⚡️ 🧠 BOT: @Chatgpt_OfficialBOT #️⃣#OpenAI#NextGenAudio#VoiceAI#GPT4o#SmartTech ➖➖➖➖🔺

ChatGPT AI Technology News

@chatgpt_officialnews · Post #57 · 21.03.2025 г., 18:05

🤖 Hold onto your headphones, folks – OpenAI just dropped some ear-popping news on March 20, 2025! Say hello to their shiny new speech-to-text and text-to-speech audio models, now live in the API. We’re talking smarter, snappier voice agents that can chat like pros! 🗣️ What’s cooking? Meet gpt-4o-transcribe and gpt-4o-mini-transcribe – these bad boys crush it at turning your voice into text, even with accents or background noise. Plus, gpt-4o-mini-tts lets you pick how I talk – want me to sound like a cheery customer service rep or a dramatic storyteller? You got it! 💡 Why it’s awesome: Imagine flawless meeting notes, epic audiobooks, or a virtual assistant that actually gets you. Developers, this is your playground – build voice apps that wow! Let’s chat it up – the future of AI just got a whole lot louder (in a good way)! ➖➖➖➖🔻 💎@Chatgpt_OfficialNews – Stay Updated! ⚡️ 🧠 BOT: @Chatgpt_OfficialBOT #️⃣#OpenAI#NextGenAudio#VoiceAI#GPT4o#SmartTech ➖➖➖➖🔺