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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #242 · 7 мај

Теперь запакуем строку. В этом случае следует передавать тип данных bytes. >>> struct.pack('=s', b'a') b'a' Для записи слова следует указывать количество символов. >>> struct.pack('=5s', b'hello') b'hello' Кстати, запакованный вид соответствует исходному тексту. Всё верно, символ есть в таблице ASCII, то есть его код попадает в диапазон 0-127, он может быть записан одним байтом и имеет визуальное представление. А вот что будет если добавить символ вне ASCII >>> struct.pack(f'=s', b'ё') SyntaxError: bytes can only contain ASCII literal characters. Ошибка возникла еще на этапе создания объекта bytes, который не может содержать такой символ. Поэтому надо кодировать эти байты из строки. >>> enc = 'ёжик'.encode('utf-8') >>> struct.pack(f'={len(enc)}s', enc) b'\xd1\x91\xd0\xb6\xd0\xb8\xd0\xba' Заметьте, длина такой строки в байтах отличается от исходной длины, так как символы вне ASCII записываются двумя байтами и более. Поэтому здесь формат создаём на лету, используя получившуюся длину как каунтер токена. #libs#basic

Hashtags

Резултати

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

Пребарај: #propfirms

当前筛选 #propfirms清除筛选
PRICE ACTION EXPERT

@priceactionexpert · Post #8896 · 30.04.2026 г., 09:02

https://x.com/priceactiongann/status/2049776164886258167?s=20 Prop Firms in 2026 – The Ugly Truth 1/ Many traders pass challenges after many attempts and after long path of learning and then practicing and winning it after multiple failures… then get payout denied or rules suddenly changed once funded. This is the worst pattern right now. 2/ Hidden Rules That Appear ONLY at Payout - Consistency rule (15-35%) kicks in funded only - News trading ban (5-10 min window) - Leverage drop & daily profit caps - Risk-per-trade limits (2-3%) All invisible during the challenge. 3/ Classic Bait-and-Switch Challenge = full news + weekend holds + no consistency Funded = new restrictions + extra monitoring + profit deductions 4/ Payout Denials Are Rising Small payouts = fast Big payouts ($3K+) = sudden “review”, IP flags, copy-trading accusations, or vague “abusive pattern” excuses. Same strategy that got approved 5 times suddenly gets denied on the 6th. 5/ Hidden Swaps + Slippage Traps Real swaps eat your equity on weekend holds. Bad fills push you into drawdown. Many firms still not truly swap-free. 6/ Bottom Line Read every rule before paying. Demand firms with zero consistency, identical rules challenge-to-funded, and real swap-free. Test small. Trust verified payouts only. Which firm screwed you lately? Drop it below 👇 #PropFirms#Trader#trading https://x.com/priceactiongann/status/2049776164886258167?s=20