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

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

Резултати

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

Пребарај: #videochat

当前筛选 #videochat清除筛选
BotsGram®

@botsgram_cu · Post #4863 · 07.08.2022 г., 15:05

@thekillpro_musicbot Con este bot puede descargar canciones y videos, además de poder reproducir música en un videochat o chat de voz 🎧🎤 #musica#videochat#chatvoz (Visto en @Botsgram_cu)

🦅 [ perspective ix ]

@perspectiveix · Post #1951 · 30.03.2020 г., 13:30

​​🤳Video Chat Apps Rise to Prominence Amid Pandemic As a significant part of the world population is currently on lockdown in an attempt to contain the #coronavirus pandemic, people are turning to technology to work, communicate and stay in touch with their loved ones. Unsurprisingly, workplace communication tools such as #Slack and #MicrosoftTeams have seen a jump in usage as working from home has become the new norm in recent weeks. People are also making use of similar tools in their personal lives, however, leading to a spike in downloads of #VideoChat apps. According to Priori Data, global downloads of #Skype, #Houseparty and #Zoom each surged by more than 100% in March, with the latter proving particularly popular among people meeting up virtually while being confined to their homes. The videoconferencing app was downloaded nearly 27 million times this month, up from just 2.1 million times in January. While Zoom is definitely the rising star among video chat apps, Skype remains far ahead in terms of active users. According to Priori Data, the #Microsoft-owned service had 59 million daily active users on its iOS and Android apps in March, compared to just 4.3 million for Zoom. It needs to be noted though, that many people also use Skype for other ways of communication, while Zoom has specialized on video conferences, so it may not be a fair comparison to make. 🦅@PerspectiveIX via Statista.