@fight4f · Post #8035 · 24.02.2024 г., 22:00
特拉維夫,反內塔尼亞胡示威 (有人被捕) https://t.me/wc_israel/32900?single #zionists 訊息 : 在特拉維夫和以色列其他主要城市,經常發生反政府示威活動,要求與哈馬斯武裝分子達成協議以釋放人質。 此外,抗議者也呼籲以色列總理內塔尼亞胡下台,並主張提前選舉。 https://t.me/rybar/57544?single
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #zionists
@fight4f · Post #8035 · 24.02.2024 г., 22:00
特拉維夫,反內塔尼亞胡示威 (有人被捕) https://t.me/wc_israel/32900?single #zionists 訊息 : 在特拉維夫和以色列其他主要城市,經常發生反政府示威活動,要求與哈馬斯武裝分子達成協議以釋放人質。 此外,抗議者也呼籲以色列總理內塔尼亞胡下台,並主張提前選舉。 https://t.me/rybar/57544?single
Hashtags
@fight4f · Post #8011 · 17.02.2024 г., 22:19
Ukraine: the founder of the 'Nazi' 'Azov Battalion' is a Zionist) #zionists
Hashtags
@fight4f · Post #7961 · 08.02.2024 г., 08:33
今日新聞: 荷蘭以色列使館加強保安 1 以色列得罪人多 2 假裝受害者 #zionists
Hashtags
@fight4f · Post #7933 · 03.02.2024 г., 20:12
特拉維夫 今天以色列人質家屬和示威者封鎖了特拉維夫的一條街道,要求內塔尼亞胡政府辭職。 https://t.me/Intelsky/11450 #Zionists
Hashtags
@CulturalExile14 · Post #3514 · 10.03.2022 г., 18:11
The words of an insightful businessman or just the #Zionists' messenger boy? #Trump https://youtu.be/9PVFqpOHPBg
@fight4f · Post #8003 · 15.02.2024 г., 16:45
今晚幾個地區的人也去支援 Leiden 市火車站集會, 因為有打對台搞親以色列集會。 #zionists #Actie #actie #Gaza #sitins
@YediotNewsChat · Post #4975 · 22.12.2023 г., 07:32
In the Palestinian war with the Jewish terrorists, the people of the world changed their attitude. The people of the world used to receive news from official media and government-affiliated organizations. News agencies such as Associated Press, France Press, United Press, Reuters and many major news agencies in the world are in the hands of #Zionists. But in the Palestine war, the people of the world turned to individual media such as Telegram, Twitter and Tik Tok to discover the truth. The social networks that were built for the #Illuminati to dominate have become the nightmare of the #Freemasons. https://t.me/YediotNewsChat
Hashtags
@YediotNewsChat · Post #5127 · 30.12.2023 г., 15:02
Lebanon's Hezbollah proudly announces the names and pictures of its martyrs. Because martyrdom is the highest level that a Muslim can reach. But the #Zionists hide the names of their dead. Because the Jews fear death for their deeds. Of course, a large number of soldiers in the Israeli army are #Hindus. Israel uses #Zombies as shields. https://t.me/YediotNewsChat
@YediotNewsChat · Post #5098 · 29.12.2023 г., 12:52
Some news sources say that the price of internet has increased in some Muslim countries. Social networks and individual media have become an important tool to deal with the #Zionists. Because the state media is under the control of the #Jews. Official and government news agencies publish selected news in favor of the Zionists. But social networks publish real news. Individual media are putting pressure on Israel. They have increased the price of the Internet to reduce the activity of individual media. Every word and picture published against the Zionists will hit the body of #Illuminati and #Freemasonry like a bullet. https://t.me/YediotNewsChat
@YediotNewsChat · Post #4814 · 14.12.2023 г., 08:53
The name of this religious school is "Darul Uloom #Deoband". This huge place is located in India. #Zionists pump deviant Islamic thoughts day and night and produce thousands of terrorists. After graduation, they join terrorist groups like #Taliban, #Al-Qaeda, #ISIS. #Mufti, #Maulvi and #Mamusta are taught that if you kill 5 Muslims, you will go to heaven. What is the result of these schools? Have they been able to improve the critical situation of #Afghanistan and #Pakistan? Graduates of these schools spread war, poverty and ignorance among Muslims. Did #Hindus who worship cows and burn Muslims alive set up these schools for the growth of Islam? Did the Hindus unite with Islam or did they establish it to fight between Islamic groups? Why don't these groups (Deobandi, #Salafi, #Wahhabi) fight with USA and Israel? https://t.me/YediotNewsChat