@mndsingapore · Post #654 · 14.08.2024 г., 01:01
‼️New stickers alert🚨 Click on the sticker below to start using our new #MNDTalkofTheTown stickers~
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #76 · 27 апр.
Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs
Пребарај: #mndtalkofthetown
@mndsingapore · Post #654 · 14.08.2024 г., 01:01
‼️New stickers alert🚨 Click on the sticker below to start using our new #MNDTalkofTheTown stickers~
Hashtags
@mndsingapore · Post #649 · 06.08.2024 г., 04:02
#MNDTalkOfTheTown: Let’s plan the future of Singapore together with the Draft Master Plan 2025 (DMP 2025) 🗺️ All Singaporeans are welcomed to share their thoughts and ideas for the DMP 2025, co-creating Singapore’s land use plans for the next 10-15 years based on 4 key themes: ⭐️ Shaping a Happy Healthy City ⭐️ Enabling Sustainable Growth ⭐️ Strengthening Urban Resilience ⭐️ Stewarding Our Nature and Heritage More exciting updates will be coming your way. Stay tuned to #TalkofTheTown for updates!
Hashtags
@mndsingapore · Post #644 · 26.07.2024 г., 10:03
#MNDTalkOfTheTown: HDB has adopted precast technology for improved productivity and quality 🏗️ With precast technology, building components can be manufactured off-site before being delivered and assembled on-site. The precast components include: - Household Shelters - Staircases - Walls - Refuse Chute - Air-Con Ledge Stay tuned for the next part of our series where we introduce Singapore’s land-use plans for the future. #TalkOfTheTown
Hashtags
@mndsingapore · Post #639 · 03.07.2024 г., 09:04
#MNDTalkOfTheTown: Introducing the BudgetMealGoWhere platform, where you can find cheap and good meals in Singapore 😋 Here’s how you can find your favourite meals on a budget: - Enter a postal code on https://gowhere.gov.sg/budgetmeal/ to find your nearest coffeeshop - Look out for stalls with the Budget Meal sticker Keep a lookout for the next part of our series to find out how we’re improving productivity at construction sites. #TalkOfTheTown
Hashtags
@mndsingapore · Post #565 · 20.02.2024 г., 09:31
#MNDTalkOfTheTown: Playgrounds have come a long way since the 1960s. Here are some fun facts about these fun spaces: 💪 Playgrounds today are designed to help develop children’s motor skills, like climbing and balancing. 🌈 They are also themed to encourage children to stretch their imaginations and play pretend. 👨👩👧👦 Many are intentionally placed near fitness corners to allow families to come together and bond. 📖 Some of the thematic playgrounds even reflect the history and heritage of the towns. Even more exciting developments are unfolding in your neighbourhoods. Stay tuned to #TalkofTheTown for updates!
Hashtags
@mndsingapore · Post #560 · 13.02.2024 г., 09:30
#MNDTalkOfTheTown: In the second part of our series, we learn more about the developing🏗️ Jurong Lake District (JLD). JLD’s infrastructure is designed with sustainability in mind. Some of the green initiatives are: ☀️Solar panels on all suitable surfaces. 💨District Cooling System to cool down buildings and the streets more effectively. 🚘EV charging points placed throughout the district. Keep a lookout for the next part of the series as we talk about the evolution of our playgrounds. #TalkOfTheTown
Hashtags
@mndsingapore · Post #555 · 06.02.2024 г., 09:31
#MNDTalkOfTheTown: Let’s explore how technology has transformed the management of our trees! 🌳 With the help of Light Detection and Ranging (LiDAR) technology and advanced modelling tools like the Tree Structural Model (TSM), we can now accurately assess which trees need our attention – keeping our parks and neighbourhoods a safer place for all. Stay tuned to this series for more about how tech and innovation has transformed the way we work, play and live! #TalkOfTheTown
Hashtags
@mndsingapore · Post #682 · 26.08.2024 г., 04:02
#MNDTalkOfTheTown: Let’s find out how Project ADORE has helped more dogs to find their forever homes ❤️ Under Project ADORE, led by NParks, HDB flat owners can adopt local mixed-breed dogs of up to 55 cm in height, with proper safeguards in place. The project has even been expanded to allow for the rehoming of retired sniffer dogs too! 🐶 #TalkOfTheTown#projectADORE