Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в 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
Good Morning Traders...
Be ready for our weekly report coming soon 👌
FxSignals_Gold analyst brutally butchered the market this week with unbeatable killing result and performance 😱 Our daily and consistent performance speaks for itself... We take maximum pride in what we do💃🕺
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Stay tuned for the update 👊
#TheGoldMaster🦾
Dear Traders,
Welcome each and everyone to a new trading week, we commence this week in the name of God 🙇♂️ a fruitful, buoyant and pips_gain week to everyone.
Huge pips ahead this coming week. Lots of scanned trade setups. FxSignals_Gold analyst would be crushing the market.
Lots of accounts would be doubled stay tuned mates, let's help you grow.
Let’s make this the best week of your trading career so far... Let's catch you some serious 💵💴
For Question, Information,Feedback ...
Kindly Contact
☎️T.me/FrxMaster_Gold
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Good Morning Traders...
Be ready for our weekly report coming soon 👌
FxSignals_Gold analyst brutally butchered the market this week with unbeatable killing result and performance 😱 Our daily and consistent performance speaks for itself... We take maximum pride in what we do💃🕺
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Stay tuned for the update 👊
#TheGoldMaster🦾
Dear Traders,
Welcome each and everyone to a new trading week, we commence this week in the name of God 🙇♂️ a fruitful, buoyant and pips_gain week to everyone.
Huge pips ahead this coming week. Lots of scanned trade setups. FxSignals_Gold analyst would be crushing the market.
Lots of accounts would be doubled stay tuned mates, let's help you grow.
Let’s make this the best week of your trading career so far... Let's catch you some serious 💵💴
For Question, Information,Feedback ...
Kindly Contact
☎️T.me/FrxMaster_Gold
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Happy Tuesday My Champions! 😎
Success in trading starts with the right mindset and honing our skills. Let's focus on improving our knowledge and decision-making abilities. Embrace the hustle and pray for wisdom.
Thank you, God and the Universe, for guiding us. Here's to a profitable and wise trading day ahead! 🙏
☎️Forex Master
#AccountManagement
#PropFirmChallenge&Verification✅
Good Morning Traders...
Be ready for our weekly report coming soon 👌
FxSignals_Gold analyst brutally butchered the market this week with unbeatable killing result and performance 😱 Our daily and consistent performance speaks for itself... We take maximum pride in what we do💃🕺
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Stay tuned for the update 👊
#TheGoldMaster🦾
Happy Friday My Champions! 😎
Every great dream begins with a dreamer ✨
Always remember, you have within you the strength, patience, and the passion to reach for the stars to change the world! 👌
Believe in yourself & have faith in your abilities. Don't let nobody steal your dream! 🔥
Wish it, plan it, do it!
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Stay tuned for the update 👊
#TheGoldMaster🦾
FxSignals_Gold Weekly Report - ( From 28/10/24 To 01/11/24)
90% Success rate, +916Pips delivered this week🔥🔥
Quick Pips Summary⤵️
⚡️Net Profit: +916Pips
🔎Total Signals: 16
⏳Running Signals: 1
⚠️Losing Pips: -100 Pips
🎯Winning Pips: +1,016Pips
🏆Total Net Profit Gained: +916Pips
We build loyalty, Real loyalty. We extract every pip we can from the markets, precision!
For Question, Information,Feedback ...
Kindly Contact
☎️T.me/FrxMaster_Gold
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Dear Traders,
Welcome each and everyone to a new trading week, we commence this week in the name of God 🙇♂️ a fruitful, buoyant and pips_gain week to everyone.
Huge pips ahead this coming week. Lots of scanned trade setups. FxSignals_Gold analyst would be crushing the market.
Lots of accounts would be doubled stay tuned mates, let's help you grow.
Let’s make this the best week of your trading career so far... Let's catch you some serious 💵💴
For Question, Information,Feedback ...
Kindly Contact
☎️T.me/FxGoldHubClientSupport
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
FxSignals_Gold Weekly Report - ( From 21/10/24 To 25/10/24)
80% Success rate, +603Pips delivered this week🔥🔥
Quick Pips Summary⤵️
⚡️Net Profit: +603Pips
🔎Total Signals: 13
⏳Running Signals: 0
⚠️Losing Pips: -150 Pips
🎯Winning Pips: +753Pips
🏆Total Net Profit Gained: +603Pips
We build loyalty, Real loyalty. We extract every pip we can from the markets, precision!
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Good Morning Traders...
Be ready for our weekly report coming soon 👌
FxSignals_Gold analyst brutally butchered the market this week with unbeatable killing result and performance 😱 Our daily and consistent performance speaks for itself... We take maximum pride in what we do💃🕺
#PropFirmChallenge&Verification✅
#AccountManagement👨🏻💻
Stay tuned for the update 👊
#TheGoldMaster🦾
FxSignals_Gold Premium VIP Daily Performance 🔔
Wednesday - 05/02/2025
Swing Trade » 🟠Buy GBPAUD (-50Pips)
Swing Trade » 🟠Sell XAUUSD (+37Pips)
Scalp Trade » 🟠Sell XAUUSD (+30Pips)
Swing Trade » 🟠Buy GBPJPY (+32Pips)
Scalp Trade » 🟠Sell XAUUSD (+86Pips)
Scalp Trade » 🟠Sell XAUUSD (+39Pips)
Swing Trade » 🟠Buy XAUUSD (-50Pips)
Scalp Trade » 🟠Sell XAUUSD (+80Pips)
⚡️Net Profit: +208Pips
🔎Total Signals: 8
⏳Running Signals: 1
⚠️Losing Pips: 100 Pips
🎯Winning Pips: +308Pips
🏆Total Net Profit Gained: +208Pips
Always remember, never lose sight of your goals. Start Investing in your dreams. No matter how hard it gets, not matter what challenges you face, look forward and never ever give up!
Join the list of others who have found their success in forex with FxSignals_Gold VIP with very low and affordable subscription fee.
Starting from $49 per Month
For Question, Information,Feedback ...
Kindly Contact
☎️T.me/FrxMaster_Gold
#PropFirmChallenge&Verification✅
#FUNDEDAccountManagement👨🏻💻