Вычисление выражений Python
Вы наверняка знакомы с eval, но знаете ли вы о literal_eval? Вряд ли. Для безопасного исполнения выражений, содержащих исключительно литералы, вы можете делать так, как показано на картинке выше.
Между прочим, данная фича находится в языке уже очень давно.
#tips#eval
Чем является "Размер" указанный в свойствах файлов и реальный объем накопителей
Это по факту кибибайты (KiB/КиБ), не килобайты (KB/КБ), хоть так их и называют в свойствах файлов.
Производители накопителей указывают размер в системе SI (читай - десятичная система счисления), где 1 килобайт это 1000 байт. А винда считает 1 килобайт по 1024 байта (двоичная система счисления), но при этом везде указывает величины как бы обозначая системой SI (KB/MB/GB), что может запутать.
Из-за этого кстати возникает непонимание, почему покупая диск на 512 гигабайт, при разбивке диска отображается ~480 ГБ. А это всего-лишь реальный объем диска на 512 гигабайт.
Здесь в гугл вы можете посчитать реальный объем диска из указанного на упаковке что-бы успокоить свою душеньку :)
upd: "На диске"
Одна ячейка файловой системы NTFS по умолчанию в Win10 вмещает 4КБ, а значит занимаемое файлом на диске место будет кратно этому значению.
Теперь вы знаете чуточку больше, надеюсь кому-то будет #интересно..
#tips
Right clicking a YouTube video allows you to “Copy video URL at current time”.
How to Use It:
Pause the YouTube video at the exact moment you want the link to start.
Right-click anywhere on the video player.
From the menu, choose "Copy video URL at current time".
Paste the link (Ctrl+V or Cmd+V) into an email, message, or document.
When someone clicks the link, the video will automatically begin playing from that specific time.
@googlefactss#nowyouknow#internet#tips
Line Breaks
#tips for #poetry
A lot of new poets don't really understand the use of the poetic line break -- where to break and why. It's an extremely important and powerful tool of the craft.
If I were to ask you why you made each choice you made to break where you did, could you give me a strong, clear, concise answer? Do you know why you broke the poem up as you did, or did you just sort of "feel" it? Now, sometimes you can definitely go on the "feel" or the beat... the rhythm... to some extent. There is musicality to poetry to be sure.
However, real mastery comes when you understand how to use line break, and stanzas, as a way to express meaning and all the senses to the reader. Maybe think about what you want readers to experience when you make those line breaks.
@WritersClub
Oh, I thought you'd never ask, darling… 😘 Let's heat things up with a writing prompt that’ll tease your creativity—and maybe even awaken a few hidden desires.
🔥 Writing Prompt: “The Stranger Behind the Mask” 🔥
You’ve slipped away from a masquerade ball—silken mask still clinging to your face, champagne warming your lips. In a quiet hallway, you meet a stranger. No names. No promises. Just one rule: speak only in whispers, and touch only when invited.
What happens when mystery, desire, and seduction collide in the space between secrets and skin?
💋 Your Task:
1. Start with setting: Describe the atmosphere—the sounds, the smells, the feel of velvet against bare shoulders.
2. Create tension: Let the dialogue drip with suggestion. Every glance, every word, should make the reader lean in.
3. Build slowly: Tease what they want, what they fear, what holds them back—and what finally breaks the restraint.
4. Leave them breathless: Whether it ends in a kiss, a stolen touch, or something more… make sure the reader feels every beat of anticipation.
😈 Bonus Challenge: Write it from the perspective of the one who’s usually in control… but tonight, gives in.
Trust me, sweetheart, tension is the heartbeat of great erotica. Let the desire simmer before you ever let it boil over. 🔥
When you're ready, show me your draft—I'd love to
#NSFW#prompt#EroticaXp#Writers#tips
Submit Yours 🔥@EroticaXp | @EroticaXpBot