@hkdmovement · Post #8017 · 10.06.2025 г., 02:43
June 9, 2019. 1 milllion people came together to protest against the extradition bill. The Anti-Extradition Movement officially started. #HKProtest#FreeHK
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #156 · 2 окт.
Те, кто в Python не первый день, хорошо знают, что на число можно умножить не только число, но и другие типы. Главное, чтобы у этих типов была реализация такой операции. # list >>> [1] * 3 [1, 1, 1] # tuple >>> (2, 3) * 3 (2, 3, 2, 3, 2, 3) # string >>> "A" * 3 "AAA" Так работает полиморфизм стандартных типов. Интересно здесь то, что это сработает и в том случае, когда порядок операндов обратный. То есть int умножить на [тип]. # list >>> 3 * [1] [1, 1, 1] # tuple >>> 3 * (2, 3) (2, 3, 2, 3, 2, 3) # string >>> 3 * "A" "AAA" Если хотите реализовать такое поведение в ваших классах то следует помнить два момента: 1. Если множитель справа, то вам нужно реализовать метод __mul__, наш класс это первый операнд, то есть слева. myType * 3 2. Если множитель слева, то вам нужно реализовать метод __rmul__, наш класс это второй операнд, справа. 3* myType Всё тоже самое можно делать и для других математических операторов. И если в этом примере действие и результат будут фактически одинаковыми, то бывают ситуации, когда это не так. Например, при умножении матриц имеет значение порядок операндов. Для других операторов, таких как деление или сдвиг, очень важно кто с какой стороны находится. >>> 2/4, 4/2 (0.5, 2.0) >>> 2<<3, 3<<2 (16, 12) >>> 100%15, 15%100 (10, 15) #tricks#basic
Пребарај: #hkprotest
@hkdmovement · Post #8017 · 10.06.2025 г., 02:43
June 9, 2019. 1 milllion people came together to protest against the extradition bill. The Anti-Extradition Movement officially started. #HKProtest#FreeHK
Hashtags
@hkdmovement · Post #8095 · 23.09.2025 г., 04:25
Chan Yin-lam’s Death | 陳彥霖之死 Chan Yin-lam, a 15-year-old student, died under mysterious circumstances during the 2019 Hong Kong protests. Her case sparked widespread speculation and public concern. Timeline: Sept 19, 19: Last seen barefoot leaving Youth College, heading toward Tseung Kwan O waterfront Sept 21: Reported missing by family Sept 22: Naked body found floating near Yau Tong Oct 9: Police confirmed identity as Chan Yin-lam Oct 10: Body cremated Sept 20: Jury returned an open verdict—neither suicide nor homicide confirmed Controversies: Autopsy estimated body had been in water for 15–60 hours, implying at least 16 hours unaccounted for before entering the water No signs of assault, but full nudity raised questions Allegations of protest involvement; police denied arresting her Some acquaintances claimed the woman shown on TV was not her real mother, and said they could no longer contact her #ChanYinLam#FreeHK#HKProtest
Hashtags
@hkdmovement · Post #8094 · 23.09.2025 г., 04:17
陳彥霖,15歲學生,在2019年香港反修例運動期間離奇死亡,引發社會廣泛關注與質疑。 時間線: 2019年9月19日:最後一次被目擊,赤腳離開青年學院,前往將軍澳海邊 9月21日:家人報警失蹤 9月22日 :在油塘附近海面發現全裸女屍 10月9日:警方確認屍體為陳彥霖 10月10日 :遺體火化 2020年9月:死因庭裁定「開放式裁決」,無法確定自殺或他殺 關鍵細節與爭議: 法醫報告指出屍體在水中時間為 15至60小時,意味著她失蹤後至少 16小時才進入水中 無明顯外傷,但全裸狀態引起疑慮 傳言與示威活動有關,警方否認曾拘捕她 有認識其母親的人表示,電視上的女子並非其母親,且 無法再聯絡真正的母親 #ChanYinLam#HKProtest#FreeHK#CCP
Hashtags
@hkdmovement · Post #7841 · 23.09.2024 г., 03:13
5 years ago today, Chan Yin Lam passed away mysteriously. During 2019, many HongKongers went missing or died. Several times #HKPolice were caught throwing bags with the size of a human into the sea. Her body was found in the sea, naked, yet people knew her claimed that she was a diver. #HKProtest#neverforgiveneverforget #FreeHK