@googlefactss · Post #40595 · 27.01.2026 г., 11:00
The temperature -40 °C is the same as -40 °F. This is the only temperature where Celsius and Fahrenheit match exactly. 🌡️❄️ @googlefactss #Temperature#Celsius#Fahrenheit#Science#Facts
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
Пребарај: #fahrenheit
@googlefactss · Post #40595 · 27.01.2026 г., 11:00
The temperature -40 °C is the same as -40 °F. This is the only temperature where Celsius and Fahrenheit match exactly. 🌡️❄️ @googlefactss #Temperature#Celsius#Fahrenheit#Science#Facts
@googlefactss · Post #40993 · 30.04.2026 г., 01:37
Crickets can be used to estimate temperature using Dolbear’s Law. The snowy tree cricket is the best species for this method because its chirp rate closely matches temperature changes. 🦗 Count chirps in 14 seconds and add 40 to estimate the temperature in °F. Crickets chirp faster in warm weather and slower in cold because they are cold-blooded. 🌡️ To estimate temperature in °C, count chirps in 8 seconds and add 5. This method is fairly accurate between 5 and 30°C. 🌡️ To convert °F to °C, subtract 32 and multiply by 0.56. 🥵🥶🦗🌡️ [Read more] @googlefactss #Insects#ScienceFacts#Nature#DidYouKnow#celsius#Fahrenheit If you have ideas or feedback contact us: @Googlefactss_Feedback_bot