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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #61 · 2 апр.

Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления. from __future__ import division Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда. Например: int/int => int int/float => float В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float. Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float. 12/float(5) => float Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//". >>> 3/2 1.5 >>> 3//2 1 То есть теперь деление int на int даёт float если результат не целое число. В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами. Данный переход описан в PEP238. #pep#2to3#basic

Резултати

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

Пребарај: #tarantulanebula

当前筛选 #tarantulanebula清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #32 · 30.07.2025 г., 04:51

🪐 The Tarantula Nebula in the Large Magellanic Cloud is the most active star-forming region in the Local Group of galaxies, producing some of the most massive stars ever observed. Inside this cosmic web, the star R136a1 blazes with a mass over 250 times that of the Sun, pushing the boundaries of how big stars can grow before they collapse. ✨ #TarantulaNebula⚡#starformation⚡#R136a1 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #493 · 12.11.2025 г., 12:21

🪐 The pulsar PSR J0537−6910, spinning an incredible 62 times per second, sits in the Tarantula Nebula of the Large Magellanic Cloud and holds the record for the fastest known "glitches." Glitches are sudden jumps in a pulsar’s rotation speed—caused by internal adjustments in these ultra-dense, spinning neutron stars—and PSR J0537−6910’s frequent glitches help scientists unlock secrets about the strange matter inside these cosmic lighthouses. ✨ #pulsars⚡#neutronstars⚡#tarantulanebula⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #729 · 01.04.2026 г., 22:21

🪐 The rapidly spinning star VFTS 102, found in the Tarantula Nebula of the Large Magellanic Cloud, is one of the fastest rotating stars ever observed—spinning at over 2 million kilometers per hour. This extreme speed stretches the star into an oblate shape and may be the result of a dramatic past, possibly caused by a close encounter or collision with another star. ✨ #unusualstars⚡#tarantulanebula⚡#rotation⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #431 · 16.10.2025 г., 12:21

🪐 The star VFTS 352, located in the Tarantula Nebula about 160,000 light-years away, is actually two massive stars orbiting each other so closely that their outer layers touch—creating a rare "overcontact binary." This unusual system is on the verge of merging, and both stars are so hot and bright that their shared atmosphere fuses them together, making VFTS 352 one of the most extreme examples of stellar partnership ever found. ✨ #unusualstars⚡#binaries⚡#TarantulaNebula⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #247 · 09.09.2025 г., 16:11

🪐 In the Tarantula Nebula of the Large Magellanic Cloud, light from young, massive stars races outward at the universal speed limit—299,792 kilometers per second—helping illuminate vast clouds of gas across 1,000 light-years of space. Because nothing can travel faster than this speed in a vacuum, the glow we see from such stellar nurseries is always an echo from the past, showing us cosmic events exactly as they unfolded years, decades, or even millennia ago. ✨ #speedoflight⚡#tarantulanebula⚡#largemagellaniccloud⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #554 · 12.12.2025 г., 22:21

🪐 The star R136a1, found in the Tarantula Nebula of the Large Magellanic Cloud, is considered the most massive known star, weighing in at about 215 times the mass of our Sun. Unlike ordinary stars, R136a1 is so hot and bright that it blasts vast amounts of its own material into space, shortening its lifespan to just a few million years—an incredibly brief existence for such a cosmic giant. ✨ #unusualstars⚡#tarantulanebula⚡#stellarphysics⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​