@WorldNews · Post #74496 · 01.05.2026 г., 21:49
The National Science Board fired by Trump was finalizing a report on China’s growing scientific edge over the United States [Read FullArticle] @WorldNews#USChinaTech#SciencePolicy#GlobalInnovation
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #183 · 23 ное.
Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux
Пребарај: #sciencepolicy
@WorldNews · Post #74496 · 01.05.2026 г., 21:49
The National Science Board fired by Trump was finalizing a report on China’s growing scientific edge over the United States [Read FullArticle] @WorldNews#USChinaTech#SciencePolicy#GlobalInnovation
@emagzinewspars · Post #9684 · 07.12.2025 г., 01:05
#The_Science🇺🇸📕[PDF]⬇️ 4 #December2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines This issue explores a century of quantum mechanics, where breakthroughs in quantum simulators, chemistry modeling, and information hardware illustrate how #QuantumTech and #AI innovation are reshaping modern science. As researchers revisit the Schrödinger equation’s legacy, new discoveries in DNA repair, materials design, and synthetic biology highlight cross-disciplinary shifts fueled by #FutureScience trends. With debates on #SciencePolicy and global collaboration, the issue captures a moment when #ResearchInnovation accelerates faster than ever, redefining both technology and our understanding of reality.
@emagzinewspars · Post #9358 · 16.10.2025 г., 14:54
#Beijing_Review🇨🇳📕[PDF]⬇️ 16 #October2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines China’s lifestyle economy surges with “The Fitness Flow,” Beijing Review’s latest cover story. From Arctic logistics breakthroughs to Golden Week spending booms, this issue explores #WTO shifts, #SpaceDebris, #FoodHeritage, and #UrbanGreening. Learn how delivery workers become emergency responders and why Jiangsu’s micro-industries matter. With a lens on #SciencePolicy and #CivilizationalDialogue, the magazine maps a dynamic vision of modern China in motion. #ChinaNews#Geopolitics#Sustainability#PublicHealth#SmartCities#GlobalTrade