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

TGINSIGHT SIMILAR POSTS

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

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

Регулярные выражения иногда могут быть просто монструозными. Выглядеть это может крайне запутанно. Сами регэкспы и без того история непростая, а когда это длинный паттерн на несколько десятков знаков, разобрать там что-либо становится не просто. Но на помощь приходит Python и его стремление сделать нашу жизнь проще! В функциях регулярок можно после паттерна указывать флаги, один из которых позволяет писать паттерны более свободно. А именно, добавлять пробелы и переносы, которые будут игнорированы. В результате мы можем разбить паттерн на строки и добавить комментов. Чтобы это сработало нужно добавить флаг re.VERBOSE. Пробелы в паттерне теперь следует указывать явно спец символами. Согласитесь, что даже с именованными группами а таком виде регэкспа выглядит вполне сносно 😉. #tricks#regex

Резултати

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

Пребарај: #liveablecities

当前筛选 #liveablecities清除筛选
MND Singapore

@mndsingapore · Post #362 · 29.07.2022 г., 11:01

In just 2 days, the Centre for Liveable Cities (CLC) and the Urban Redevelopment Authority (URA) will jointly organise our flagship event of the year – World Cities Summit (WCS) 2022! The Summit will return to an in-person conference format this year, and will convene government and industry leaders, and leading experts from around the world to address liveable and sustainable city challenges, share integrated urban solutions and forge new partnerships. Over the course of 4 days, WCS delegates will engage with this year’s theme - “Liveable and Sustainable Cities: Emerging Stronger” – through a series of discussions on how cities need to remain liveable, sustainable, and more resilient, in these times of prolonged and unpredictable disruptions, such as pandemics and climate change! For more information, visit https://worldcitiessummit.com.sg #worldcitiessummit#sustainablecities#liveablecities#resilientcities#innovation#cities#smartcities#wcsyl#clcsg