Ранее я делал серию постов про битовые операторы.
Вот вам ещё один наглядный пример как это используется в 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
💊🇺🇸FDA APPROVES FOUNDAYO OBESITY DRUG APRIL 1
🔹Foundayo orforglipron approved for weight reduction in obese adults with diet exercise 💊
🔹11 novel drugs approved through April covering rare diseases and cancer treatments 📈
🔹Baxdrostat hypertension drug under Priority Review — breakthrough for resistant blood pressure 🩺
🔹Advisory Committee April 30 reviews breast cancer and prostate cancer therapies pending 🏥
🔹Breakthrough designations for blood cancers and Hunter syndrome advancing pipeline 🔬
American pharma innovation conquering diseases — FDA fast-tracking breakthroughs! 🇺🇸⚡
#FDA#healthcare
@america
🔥Avec le #PfizerGate, on a ENFIN la réponse à ma question depuis 2020:
pourquoi il y avait 3410 cas "suspectés #Covid19 mais non confirmés", dont 1594 vaccinés?
A la page 42 du rapport de la #FDA.
Les révélations du #PfizerGate indiquent entre autres qu'ils n'ont pas testé tous leurs volontaires par test PCR par manque de staff...
C'est ballot quand Pfizer affirmait qu'il n'y avait que 8 vaccinés positifs Covid pour dire 95% d'efficacité.
Facile, il suffit de ne pas les tester? https://www.fda.gov/media/144245/download
https://www.francesoir.fr/societe-sante/pfizer-gate-ventavia
🇺🇸Pfizer/BioNTech подала заявку в FDA на регистрацию обновленной вакцины против COVID-19 для детей от 6 мес. до 5 лет.
В настоящее время вакцина используется у детей данной возрастной группы как третья доза в трехступенчатой схеме вакцинации. Для расширения регистрации вакцины, адаптированной под Омикрон, компания также планируют подать заявку в Европейское медицинское агентство и другие регуляторные органы. После одобрения в этих организациях вакцина будет применяться у детей младше пяти лет на основном этапе вакцинации и как бустерная доза.
@Sputnik_M#сша#pfizer#fda
Vous vous souvenez de #Maddie, la fillette de 12 ans qui a fait partie des essais cliniques du #vaccin#Pfizer?
24 heures après sa 2e dose, elle a fini aux urgences: douleurs abdominales, rythme cardiaque erratique, perte de mémoire, perte de sensation des jambes... Elle est maintenant en chaise roulante et reçoit médicaments et nourriture par un tube dans le nez.
Depuis aucun suivi, aucune réponse du CDC, de la #FDA, un médecin a admis "nous avons en effet entendu beaucoup de complications neurologiques du vaccin". Ils ont totalement enterré son histoire.
Il y avait 1131 enfants dans cet essai.
Si une enfant sur 1000 souffre d'effets secondaires handicapants à vie imaginez combien pour des millions de vaccinés. https://aaronsiri.substack.com/p/fda-buries-data-on-seriously-injured
Oranges are not always naturally orange. In some places, they stay green even when ripe because of the weather. To make them look orange, farmers use either a safe red dye called Citrus Red No. 2 or treat the fruit with ethylene gas, which helps the skin change color faster.
[Read more]
@googlefactss🍊🔴#Oranges#FoodFacts#FDA#FruitColoring
Hold the salt: FDA gives new sodium guidelines
The U.S. Food and Drug Administration gave restaurant chains and packaged food companies a goal of reducing sodium levels in Americans by an average of 12% - part of its attempt to clamp down on preventable health issues like high blood pressure, which can lead to heart attacks and strokes.
#FDA#sodium#sodiumguidelines#News#Reuters
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖
FDA declines to take stance on Moderna boosters
U.S. FDA researchers said Moderna's COVID-19 vaccine did not yet meet the guidelines for booster shots
#News#Reuters#FDA#Moderna#Vaccine#BoosterShot
Subscribe: http://smarturl.it/reuterssubscribe
Reuters brings you the latest business, finance and breaking news video from around the globe. Our reputation for accuracy and impartiality is unparalleled.
Get the latest news on: http://reuters.com/
Follow Reuters on Facebook: https://www.facebook.com/Reuters
Follow Reuters on Twitter: https://twitter.com/Reuters
Follow Reuters on Instagram: https://www.instagram.com/reuters/?hl=en
➖@reutersworldchannel➖