Telegram Group & Telegram Channel
Python Hints
یک ابزار داریم (روی Rust) که توی چندتا بخش نیاز به پردازش یک سری header های درخواستی که میاد داره. یا مثلا بعضی جاها کاربر می‌تونه permission هارو باهاشون کار کنه و ... همیشه خیلی سریع پردازش انجام می‌شد و تمام؛ دیروز یکی از مشتری‌ها اعلام کرد که ابزار خیلی…
پرسیدید؛ چرا AND انجام شده؟

هرعددی نهایتاً بصورت binary توی کامپیوتر ذخیره میشه مثلاً 10 میشه (۸بیتی در نظر بگیریم)

00001010
یا برای 5 می‌شه
00000101

اولین عدد سمت راست همیشه 2⁰ رو ضربدر خودش می‌کنه تا به دسیمال همون سیستم عددی خودمون تبدیل بشه.

2⁰=1
هست، پس اگر سمت راستی ترین بیت 1 باشه اون عدد فرد هست.
👍204



tg-me.com/pyHints/848
Create:
Last Update:

پرسیدید؛ چرا AND انجام شده؟

هرعددی نهایتاً بصورت binary توی کامپیوتر ذخیره میشه مثلاً 10 میشه (۸بیتی در نظر بگیریم)

00001010
یا برای 5 می‌شه
00000101

اولین عدد سمت راست همیشه 2⁰ رو ضربدر خودش می‌کنه تا به دسیمال همون سیستم عددی خودمون تبدیل بشه.

2⁰=1
هست، پس اگر سمت راستی ترین بیت 1 باشه اون عدد فرد هست.

BY Python Hints




Share with your friend now:
tg-me.com/pyHints/848

View MORE
Open in Telegram


Python Hints Telegram | DID YOU KNOW?

Date: |

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Python Hints from de


Telegram Python Hints
FROM USA