TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #191 · 14 дек.

Как разделить строку с shell-командой на отдельные аргументы в виде списка? Если сделать просто сплит по пробелу то получим то что надо, кроме случаев со вставками текста с пробелами. Например так: >>> '-arg "I Am Groot"'.split(' ') ['-arg', '"I', 'Am', 'Groot"'] Чтобы учитывать текст в кавычках как единый аргумент можно воспользоваться функцией shlex.split() Кто читает мой канал давно, уже в курсе. А что делать, если нужно обратное действие? Объединить аргументы из списка в строку и при этом добавить кавычки в аргумент с пробелами. Конечно, если вы используете subprocess то он сам всё разрулит. Но если вам нужна именно команда одной строкой, то можно воспользоваться готовой функцией в том же subprocess. >>> from subprocess import list2cmdline >>> list2cmdline(['-arg', 'I Am Groot']) '-arg "I Am Groot"' Он также позаботится об экранировании уже имеющихся кавычек >>> list2cmdline(['-arg', 'I Am "Groot"']) '-arg "I Am \"Groot\""' А вот так он может "схлопнуть" в команду JSON >>> list2cmdline(['--json', json.dumps({'key': 'value'})]) '--json "{\"key\": \"value\"}"' _______________ Возможно кто-то спросит, а зачем соединять аргументы в строку если subprocess сам это сделает а os.system не наш путь? Мне как-то потребовалось отправлять команду на удалённое выполнение и в API поддерживалось указание команды только строкой. Так что всякое бывает) #libs#basic

Hashtags

Резултати

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

Пребарај: #bigbrother

当前筛选 #bigbrother清除筛选
Libreware

@libreware · Post #1576 · 15.04.2026 г., 16:39

438 Experts Warn: Age Verification May Not Work | Tech, Privacy News Explained More than 400 security and privacy experts have issued a formal warning about age verification systems. Importantly, they are not arguing against protecting children online — but raising concerns about whether current systems actually work as intended, how they scale, and what risks they introduce. The warning comes as governments in the UK, US, and Europe continue rolling out age verification and age assurance requirements under new regulations. In this video, we look at: • Who these experts are • What they actually said • The technical challenges behind age verification • Why concerns about privacy, security, and effectiveness are being raised • And why these systems are being introduced anyway https://csa-scientist-open-letter.org/ageverif-Feb2026 #BigBrother#AgeVerification

Libreware

@libreware · Post #1573 · 06.04.2026 г., 18:13

Age Verification Isn’t What You Think (New Investigation) | Tech, Privacy, News Explained A new OSINT-based investigation is raising serious questions about how age verification systems actually work. These systems are often presented as simple checks — “are you over 18?” — but this report suggests something much broader may already be in place. Surveillance Findings: Age Verification as Mass Surveillance Infrastructure - TBOTE Project Age verification laws in Brazil, the United Kingdom, and the United States are creating mandatory markets for #BiometricIdentity verification infrastructure that doubles as #surveillance. The same investor, Peter Thiel, simultaneously controls the surveillance analytics company (#Palantir) and funds the identity verification company (Persona via Founders Fund). A coordinated legislative pipeline creates the legal demand for these services across borders. The identity verification ecosystem is now converging with the AI agent infrastructure.. #BigBrother

中国有一个奥运应用程序,声称用于追踪新冠病毒接触者,所有运动员和与会者都必须使用该应用程序。然而,据透露,这款应用程序的 Android 和 iOS 版都在收集音频并发送到位于中国的服务器。 技术研究员 Jonathan Scott 对这个名为 MY2022 Olympics 的应用程序进行了逆向工程。他发现该应用程序可用于监视运动员和与会者,因为它可以在未经同意的情况下录制音频并将其发送到中国的服务器进行分析。 Scott 写道,该应用程序 “将自己置于前台,以确保它有能力倾听。” 该应用程序似乎没有利用安全漏洞。它主动录制音频并将其发送到中国境内的服务器。 根据 Scott 的发现,即使将其移至后台,它也会将自己强制移至前台,以便继续积极地窃听。 该应用程序使用由一家名为 iFlytek 的初创公司开发的 AI 技术。在我们的博客上搜索 “iFlytek” 您将看到与其相关的内容。 #Surveillance#Olympics#China#BigBrother