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

Резултати

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

Пребарај: #gltf

当前筛选 #gltf清除筛选
GitHub Trends

@githubtrending · Post #15296 · 12.11.2025 г., 13:30

#javascript#3d_gaussian_splatting#game_development#game_engine#gamedev#gaussian_splatting#gltf#hacktoberfest#javascript#nodejs#playcanvas#typescript#virtual_reality#webgl#webgl2#webgpu#webxr PlayCanvas is an open-source game engine that lets you create 3D and 2D games or apps that run in any browser, using WebGL and WebGPU for fast, high-quality graphics. It supports advanced features like animation, physics, sound, and asset streaming, and you can write code in JavaScript or TypeScript. The engine is free, easy to set up, and works well for both simple projects and complex games, making it simple to build and share interactive content online. https://github.com/playcanvas/engine

GitHub Trends

@githubtrending · Post #14774 · 01.06.2025 г., 12:00

#cplusplus#3mf#android#asset_pipeline#assets#assimp#c_plus_plus#collada#dae#fbx#fbx_exporter#game_development#gamedev_tool#gamedevelopment#gltf#gltf2#ifc#patreon#python#stl The Open Asset Import Library (Assimp) is a tool that helps load many different 3D file formats into a common format. It supports over 40 formats for importing and several for exporting. Assimp works on various platforms like Windows, macOS, Linux, Android, and iOS. It also provides tools to improve the 3D models, such as fixing errors and making them look better. This library is useful for developers because it simplifies working with different 3D file types, making it easier to create and manage 3D content across different systems. https://github.com/assimp/assimp