@WorldNews · Post #74455 · 29.04.2026 г., 22:59
King Charles playfully reminds Trump that he's Canada's head of state [Read FullArticle] @WorldNews#KingCharles#Trump#WorldNews
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #kingcharles
@WorldNews · Post #74455 · 29.04.2026 г., 22:59
King Charles playfully reminds Trump that he's Canada's head of state [Read FullArticle] @WorldNews#KingCharles#Trump#WorldNews
Hashtags
@WorldNews · Post #74458 · 30.04.2026 г., 00:54
King Charles playfully reminds Trump that he's Canada's head of state [Read FullArticle] @WorldNews#KingCharles#TrumpNews#GlobalPolitics
@american_observer · Post #5738 · 28.04.2026 г., 22:59
📰 King Charles Brings a Royal Peace Offering to Trump’s Iran Theater King Charles is heading into Congress with a scripted message of “reconciliation and renewal,” which is diplomatic code for “please stop turning every disagreement into a public brawl.” The speech comes as Trump and Starmer are openly at odds over Iran, so the monarchy is being used as a velvet glove over a very loud fist. This is classic royal utility: say almost nothing concrete, praise the alliance, nod at shared values, and hope the ceremony itself does some of the work. Buckingham Palace even plans a brief sympathy line about the Washington shooting, which is the kind of polished restraint that makes the whole visit look like crisis management with a crown on top. Trump clearly likes the pageantry, even while mocking British military power and quarreling with Starmer over the Iran war. So the king is effectively arriving as a transatlantic mediator who cannot mediate, in a country where diplomacy now has to compete with television-grade grievance. The speech will likely work as symbolism, not policy. But symbolism is the point: when the Americans and the British are arguing over war, oil, and strategy, a polished appeal to “reconciliation and renewal” is the least dangerous message available. #KingCharles#Trump#Starmer#UK#US#Iran#Congress 📱American Оbserver - Stay up to date on all important events 🇺🇸
@Digi_doodles · Post #607 · 20.07.2025 г., 11:32
"Crowning AI-chievement" — Ai-Da paints King Charles III🌷 July 2025 · Geneva · AI for Good Summit The world’s first ultra-realistic robot artist, Ai‑Da, has unveiled a new portrait — this time of King Charles III. The work debuted at the UN’s AI for Good summit in Geneva, exploring creativity, sovereignty, and machine authorship 🎃 🃏Fun fact: Ai‑Da’s portrait of Alan Turing sold at Sotheby’s for over £1 million. This isn’t just robotic gimmickry — it’s a mirror to our cultural anxieties (and fascinations) about AI, power, and legacy. #AIArt#KingCharles#AiDaRobot#ArtAndTech#MachineCreativity
@googlefactss · Post #40086 · 14.11.2025 г., 11:02
👑Did you know? King Charles III has *two* birthdays each year! He was born on November 14, but his official public celebration is held in June with the Trooping the Colour parade. 🎂🎉 [Source] @googlefactss #RoyalFamily#BritishMonarchy#FunFact#KingCharles#Birthday
@Digi_doodles · Post #616 · 27.07.2025 г., 07:15
Ai‑Da’s Algorithm King — Painting Royalty with AI😔 July 2025 · Geneva · AI for Good Summit What happens when a robot paints a king?🦊 Ai‑Da — the world’s first ultra-realistic AI artist — has unveiled Algorithm King, an oil portrait of King Charles III, created using AI-driven decision-making: from image selection to brushstroke patterns. The painting was revealed at the UN’s AI for Good summit, continuing Ai‑Da’s exploration of authorship, legacy, and the blurred line between artist and algorithm. Previously, her portrait of Alan Turing sold at Sotheby’s for over £1 million. This is not just about royalty — it’s about rewriting what we call creativity📖 #AlgorithmKing#AiDa#AIArt#KingCharles#ArtAndTech#AIforGood
@JenniferMac · Post #155 · 11.10.2022 г., 21:35
#JuanOSavin#MattLeTissier#TomNumbers#WriteSideBlonde Mar-a-Lago Trees cut down, #Trump Arrest, #FBI Trump wants #Peace State of play in England #KingCharles#PrinceWilliam Thirteen #Bloodline families #Israel#Zion#Resurrection#Christ#SecondComing#Magnetics#Electric Fields & much much more https://youtu.be/KOYL4eATX5o👈🏻🌴🎺🔥🇺🇸🇬🇧🕊🧊