@Govsg · Post #3330 · 17.03.2026 г., 06:38
Tensions in the Middle East are driving global fuel prices up. #govsgexplains how this could affect you and what measures are available to help Singapore and Singaporeans navigate this period.
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
Пребарај: #govsgexplains
@Govsg · Post #3330 · 17.03.2026 г., 06:38
Tensions in the Middle East are driving global fuel prices up. #govsgexplains how this could affect you and what measures are available to help Singapore and Singaporeans navigate this period.
Hashtags
@Govsg · Post #3283 · 06.02.2026 г., 07:19
🚦Parliament passed the new Land Transport and Related Matters Bill on 4 Feb 2026. #govsgExplains four key changes in this Act that facilitate the ERP 2 transition and strengthen deterrence for active mobility and vehicular offences. More info: go.gov.sg/govsgexplains-ltrma
Hashtags
@Govsg · Post #3227 · 07.11.2025 г., 11:35
📢The Weekly Wrap – 7 November 2025 1) Wondering how Singapore is tackling online harms? The new Online Safety (Relief and Accountability) Bill (OSRA) is a comprehensive legal framework that offers better protection to victims of online harms. Here’s how OSRA will strengthen online safety👇 1) Set up the Online Safety Commission to help victims seek timely redress 2) Introduce Statutory Torts to enhance perpetrators’ accountability 3) Support victims in identifying wrongdoers 🔗 Learn more: go.gov.sg/parl-roundup-osra 2) Site of 38 Oxley Road intended to be gazetted as a National Monument The National Heritage Board’s Preservation of Sites and Monuments Advisory Board has assessed the Site of 38 Oxley Road to be of historic significance and national importance. If preserved and acquired, all private living spaces will be removed to respect Mr Lee Kuan Yew’s wishes for privacy. #govsgexplains: go.gov.sg/explains-38oxleyroad-1 ➡️ You can also read more about Mr Lee’s views on the Site: go.gov.sg/explains-38oxleyroad-2 3) Visit “We Can ACT Against Scams” Roadshow Learn ways to protect yourself and your loved ones from scams. Don’t miss the interactive activities this weekend! 🗓️ 8 & 9 Nov 2025 (Sat & Sun) 🕙 10am – 8pm 📍Toa Payoh HDB Hub Atrium 🔗 Plan your visit: go.gov.sg/antiscamroadshow
Hashtags
@Govsg · Post #3201 · 03.11.2025 г., 08:01
In its 2018 Report, the Ministerial Committee on the Site of 38 Oxley Road concluded that while Mr Lee Kuan Yew preferred the building to be demolished, he was prepared to accept other options. #govsgexplains more about the background of Mr Lee’s views on the Site of 38 Oxley Road. ⬆️
Hashtags
@Govsg · Post #3191 · 03.11.2025 г., 07:37
The National Heritage Board’s (NHB) Preservation of Sites and Monuments (PSM) Advisory Board has assessed the Site of 38 Oxley Road to be of historic significance and national importance. No other site or monument represents this foundational part of Singapore’s independence history. The Government intends to gazette the Site of 38 Oxley Road to safeguard and preserve it as a National Monument for possible use as a heritage park. If preserved and acquired, all private living spaces will be removed to respect Mr Lee Kuan Yew’s wishes for privacy. #govsgexplains more ⬆️
Hashtags
@Govsg · Post #2596 · 20.12.2024 г., 13:00
#govsgexplains: Incorrect use of NRICs has made us more vulnerable over time. However, the shift from using masked NRIC numbers does not mean automatically unmasking and using the full NRIC number in all circumstances. How can we better protect our personal data? Find out more ⬆️
Hashtags
@Govsg · Post #2563 · 15.11.2024 г., 10:25
📢The Weekly Wrap – 15 November 2024 1. Supporting our Hawkers 🍽 Hawker centres are an integral part of our daily lives. How can we support hawkers better while keeping food prices affordable? 👉#govsgexplains more: • Balancing fair incomes for hawkers while keeping food options affordable: go.gov.sg/hawkers-wrap • Decisive actions taken to support Singaporeans with their cost of living: go.gov.sg/col-support-wrap 2. Live longer, Learn for Life 📈 Are you considering a career switch but afraid to take the first step? PM Lawrence Wong shares more on how the Government can support and journey with you through SkillsFuture 💪 🔗 Find out more at: go.gov.sg/learnforlife2024 3. Managing community disputes more effectively Want to resolve disputes with neighbours faster? There are now better mediation efforts and a dedicated team to facilitate this. Say yes to good neighbourliness! 🔗 Find out more at: go.gov.sg/community-disputes-wrap
Hashtags
@Govsg · Post #2552 · 15.11.2024 г., 01:31
🔼 Find out more about the decisive actions taken to support Singaporeans with their cost of living. We stand ready to do more to address these concerns. #govsgexplains
Hashtags
@Govsg · Post #2542 · 14.11.2024 г., 12:07
How can we ensure fair incomes for our hawkers while keeping food prices affordable for everyone? #govsgexplains more ⬆️
Hashtags
@Govsg · Post #2460 · 13.09.2024 г., 08:15
Curious about why public transport fares are being adjusted? Read on ⬆️ to find out the reasons for the review and the measures in place to support you. #govsgexplains
Hashtags
@Govsg · Post #2213 · 24.05.2024 г., 10:32
In view of the heightened threat situation, Ministry of Home Affairs and Home Team Departments have stepped up patrols and security measures. 📢 With the June school holidays round the corner, please continue to stay safe and vigilant! #govsgexplains
Hashtags
@Govsg · Post #2194 · 17.05.2024 г., 04:32
Singapore has voted in favour of a resolution at the United Nations General Assembly that expresses support for the admission of Palestine as a UN member. Find out why ⬆️#GovsgExplains
Hashtags