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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

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

Пребарај: #zahahadid

当前筛选 #zahahadid清除筛选

BEEAH Headquarters / Zaha Hadid Architects BEEAH Group's new headquarters in Sharjah, UAE, was opened on Wednesday, March 30 by His Highness Dr. Sheikh Sultan bin Muhammad Al Qasimi, Ruler of Sharjah. Powered by its solar array and equipped with next-generation technologies for operations at LEED Platinum standards, the new headquarters has been designed by Zaha Hadid Architects (ZHA) to achieve net-zero emissions and will be the group’s management and administrative centre that sets a new benchmark for future workplaces. #arch_shovel#architecture#archdaily#zahahadid

Zaha Hadid Architects wins competition to design the new Hangzhou International Sports Centre. Incorporating a 60,000-seat football stadium and practice pitches, the centre also includes a 19,000-seat indoor arena as well as an aquatics centre with two 50-metre pools. The centre establishes a new riverfront park and public plazas with direct access to Lines 3 and 5 of the city’s expanding metro network. Located within the warm temperate climate of Hangzhou, the International Sports Centre has been designed to the highest 3-Star rating of China’s Green Building Program with each venue providing optimal conditions using natural hybrid ventilation most of the year. Annual solar irradiation analysis has determined the composition of the façade’s external louvres while photovoltaics will harvest solar power for all venues. Ground heat exchange and recovery systems will ensure the most efficient operations of all facilities. #architecture#zahahadid#arch_shovel#archdaily

KAPSARC awarded five LEED EBOM Platinum certifications by the US Green Building Council . The only buildings in Saudi Arabia to receive Platinum LEED Existing Building: Operation & Maintenance (EBOM) certification, KAPSARC’s five community facilities achieved the highest sustainability standards throughout the centre’s design, construction, operations and maintenance procedures. . KAPSARC’s waste management program diverted 94% of solid waste from landfill through waste stream audits that eliminated single-use goods and developed an effective waste segregation strategy across multiple stages. KAPSARC also reduced the compound’s water consumption by 30% with weather-based micro-irrigation, mulching, native planting and efficient faucets. The centre’s energy usage was also reduced by 35% with energy audits regularly identifing energy conservation measures. . #architecture#zahahadid#zahahadidarchitects#architecture#arch_shovel#archidaily

Parametric Architecture. Works by Mariana Cabugueira ( a Senior Architectural Designer at Zaha Hadid Architects): 1 – the Concert Hall. 2 - Tower C - the Zaha Hadid tower. 3-6 – A Mega Luxury Hotel and Office Hybrid Tower. 7-8 – The Floating Park Island. 9-10 – the Mykonos Villa. #arch_shovel#architecture#parametric#maya#zahahadid

Штаб Зюзино

@zuzinoshtab · Post #432 · 01.10.2020 г., 15:00

👆🏿❗️Муниципальный депутат Зюзино Юрий Самгин побеседовал с исполнительным директором архитектурного бюро Zaha Hadid Кристосом Пассосом. Это архбюро разрабатывало концепцию застройки Кузьминок – «столицы реновации», как окрестили район столичные власти. 👉🏿Рекомендуем к просмотру: https://youtu.be/jdqerALE5OM Кстати, вот интервью с господином Пассосом от ноября 2017 г. #конкурс#москомархитектура#кузнецов#самгин#zahahadid#кузьминки