@forbid_403 · Post #283 · 14.03.2024 г., 06:31
EFF:呼吁议会停止对 Tik Tok 的封禁。 EFF 称议会不应根据社交媒体平台的运营者所属国家对其进行封禁;无论谁在收集数据,个人隐私都应受到保护。 https://act.eff.org/action/tell-congress-stop-the-tiktok-ban #EFF#TikTok#US
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #60 · 31 мар.
Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic
Пребарај: #eff
@forbid_403 · Post #283 · 14.03.2024 г., 06:31
EFF:呼吁议会停止对 Tik Tok 的封禁。 EFF 称议会不应根据社交媒体平台的运营者所属国家对其进行封禁;无论谁在收集数据,个人隐私都应受到保护。 https://act.eff.org/action/tell-congress-stop-the-tiktok-ban #EFF#TikTok#US
@addisstandardeng · Post #21262 · 31.01.2026 г., 10:43
News: #Ethiopia submits 2028 AFCON bid, seeking fourth hosting after 50-year gap Ethiopia has formally submitted a bid to host the 2028 Africa Cup of Nations (#AFCON), seeking to stage the continental tournament for a fourth time and for the first time in more than five decades, according to a report by state-owned media citing the Ethiopian Football Federation (#EFF). The report said the bid was officially lodged with the Confederation of African Football (#CAF), marking Ethiopia’s return to contention for hosting the tournament it last staged in 1976. Ethiopia previously hosted AFCON in 1962, 1968, and 1976, and won the title on home soil in 1962. If awarded hosting rights, Ethiopia would become the joint second country to stage the Africa Cup of Nations the most times, behind only Egypt (5). Bahiru Tilahun, Secretary General of the Ethiopian Football Federation, was quoted in... https://www.facebook.com/AddisstandardEng/posts/pfbid02RBrfdanpeSSvrR4tcTWEyWrsRV4djoQDikrUvipckET9MttjzYM8t98rmQ3EG2o3l