Python вопросы с собеседований
Вопросы с собеседований по Python @workakkk - админ @machinelearning_interview - вопросы с собесдований по Ml @pro_python_code - Python @data_analysis_ml - анализ данных на Python @itchannels_telegram - 🔥 главное в ит РКН: clck.ru/3FmrFd
Show more📈 Analytical overview of Telegram channel Python вопросы с собеседований
Channel Python вопросы с собеседований (@python_job_interview) in the Russian language segment is an active participant. Currently, the community unites 24 962 subscribers, ranking 5 488 in the Technologies & Applications category and 26 804 in the Russia region.
📊 Audience metrics and dynamics
Since its creation on невідомо, the project has demonstrated rapid growth, gathering an audience of 24 962 subscribers.
According to the latest data from 05 June, 2026, the channel demonstrates stable activity. Although there has been a change in the number of participants by -153 over the last 30 days and by -5 over the last 24 hours, overall reach remains high.
- Verification status: Not verified
- Engagement rate (ER): The average audience engagement rate is 6.12%. Within the first 24 hours after publication, content typically collects 3.05% reactions from the total number of subscribers.
- Post reach: On average, each post receives 1 527 views. Within the first day, a publication typically gains 762 views.
- Reactions and interaction: The audience actively supports content: the average number of reactions per post is 8.
- Thematic interests: Content is focused on key topics such as github, api, собеседование, git, docker.
📝 Description and content policy
The author describes the resource as a platform for expressing subjective opinions:
“Вопросы с собеседований по Python
@workakkk - админ
@machinelearning_interview - вопросы с собесдований по Ml
@pro_python_code - Python
@data_analysis_ml - анализ данных на Python
@itchannels_telegram - 🔥 главное в ит
РКН: clck.ru/3FmrFd”
Thanks to the high frequency of updates (latest data received on 07 June, 2026), the channel maintains relevance and a high level of publication reach. Analytics show that the audience actively interacts with content, making it an important point of influence in the Technologies & Applications category.
html.parser.HTMLParser стал устойчивее к вредоносной разметке и теперь корректно обрабатывает дополнительные RAWTEXT/PLAINTEXT элементы, включая:
- plaintext
- xmp
- iframe
- noembed
- noframes
- noscript (опционально)
2. Исправление проблемы памяти в SSL
Устранён use-after-free в модуле ssl, который мог возникать при ошибке SSL_new().
3. Исправления безопасности для списков
Закрыты несколько уязвимостей, включая:
- use-after-free при сравнении списков
- выход за границы памяти при slice-операциях в списках
Эти исправления особенно важны для систем, работающих с параллельными или специально сформированными входными данными.
Если вы используете Python 3.10 / 3.11 / 3.12, рекомендуется обновиться.
Подробнее:
https://blog.python.org/2026/03/python-31213-31115-31020/
Установка
pip install transformers soundfile accelerate
Пример использования Qwen3-TTS CustomVoice
import torch
import soundfile as sf
from transformers import AutoProcessor, AutoModel
model_id = "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id, torch_dtype=torch.float16).cuda()
text = "Привет! Это тест кастомного голоса."
reference_audio = "voice_sample.wav" # 5–15 секунд вашего голоса
inputs = processor(
text=text,
reference_audio=reference_audio,
return_tensors="pt"
).to("cuda")
with torch.no_grad():
audio = model.generate(**inputs)
sf.write("output.wav", audio.cpu().numpy(), samplerate=24000)
print("Voice generated: output.wav")
Модель:
https://huggingface.co/Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoicein, count, index
- на маленьких данных всё быстро
- на реальных — приложение начинает «тормозить без причины»
Проблема в том, что:
- list — это O(n) для поиска
- поиск внутри цикла = O(n²)
- Python честно делает работу, которую ты ему попросил
Профи думают не «работает или нет», а сколько лишних операций выполняется.
Правильный подход:
- если нужны проверки принадлежности — используй set
- если считаешь элементы — используй dict или Counter
- если данные не меняются — предвычисляй один раз
Этот приём один из самых частых источников скрытых performance-багов в Python-коде.
# ❌ Плохо: O(n²)
users = ["alice", "bob", "carol", "dave"]
for u in users:
if u in users: # каждый раз полный проход списка
process(u)
# ✅ Хорошо: O(n)
users = ["alice", "bob", "carol", "dave"]
users_set = set(users)
for u in users:
if u in users_set:
process(u)wall
- ID сообщества VK
- токен Telegram-бота
- ID Telegram-канала или чата
Такой подход отлично подходит для:
- советов и обучающих постов
- новостей и апдейтов
- кросс-постинга контента
- роста охвата без ручной рутины
import requests
TELEGRAM_BOT_TOKEN = "TELEGRAM_BOT_TOKEN"
TELEGRAM_CHAT_ID = "@your_channel"
VK_TOKEN = "VK_ACCESS_TOKEN"
VK_GROUP_ID = "123456789" # без минуса
def post_to_vk(text: str):
url = "https://api.vk.com/method/wall.post"
payload = {
"owner_id": f"-{VK_GROUP_ID}",
"from_group": 1,
"message": text,
"access_token": VK_TOKEN,
"v": "5.199",
}
requests.post(url, data=payload)
def handle_telegram_update(update):
message = update.get("message")
if not message:
return
text = message.get("text")
if text:
post_to_vk(text)
def poll_telegram():
offset = None
while True:
resp = requests.get(
f"https://api.telegram.org/bot{TELEGRAM_BOT_TOKEN}/getUpdates",
params={"offset": offset, "timeout": 30},
).json()
for update in resp["result"]:
offset = update["update_id"] + 1
handle_telegram_update(update)
poll_telegram()
# ставим менеджер версий Python
brew install pyenv
# ставим нужную версию Python
pyenv install 3.12.2
pyenv local 3.12.2
# создаём виртуальное окружение
python -m venv .venv
source .venv/bin/activate
# обновляем инструменты
pip install --upgrade pip
# ставим зависимости проекта
pip install fastapi uvicorn
# фиксируем версии
pip freeze > requirements.txt
# ставим pre-commit для авто-проверок
pip install pre-commit black ruff
pre-commit install
Запуск модели в терминале (чат)
# Чат с моделью прямо в терминале
ollama run mistral
# Модель, заточенная под код
ollama run codellama
# Запуск локального сервера Ollama
ollama serve
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch, time
model_name = "Qwen/Qwen2.5-1.5B-Instruct" # маленькая модель
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map="auto")
prompt = "Explain why smaller models can be better in production:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
start = time.time()
out = model.generate(**inputs, max_new_tokens=100)
latency = time.time() - start
print(tokenizer.decode(out[0], skip_special_tokens=True))
print(f"Latency: {latency:.2f}s")
# Stage 1 - сборка
FROM python:3.12-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN pip install --prefix=/install --no-cache-dir -r requirements.txt
COPY . .
# Stage 2 - минимальный рантайм
FROM python:3.12-slim
WORKDIR /app
COPY --from=builder /install /usr/local
COPY --from=builder /app .
RUN useradd -m appuser
USER appuser
CMD ["python", "app.py"]
import pyautogui, time
time.sleep(5)
pyautogui.write("Python рулит!", interval=0.1)
pyautogui.press("enter")
pyautogui.moveTo(500, 500, duration=1)
pyautogui.click()try и except для отлова ошибок, таких как JSONDecodeError. Это поможет вам быстро диагностировать проблемы с форматом данных.
import json
json_data = '{"name": "John", "age": 30}' # Пример корректного JSON
try:
parsed_data = json.loads(json_data)
print(f"Name: {parsed_data['name']}, Age: {parsed_data['age']}")
except json.JSONDecodeError as e:
print(f"Ошибка разбора JSON: {e}")
except KeyError as e:
print(f"Отсутствует ключ: {e}")
except Exception as e:
print(f"Произошла ошибка: {e}")
from fastapi import FastAPI
from pydantic import BaseModel
app = FastAPI()
class Item(BaseModel):
name: str
price: float
is_offer: bool = None
@app.post("/items/", response_model=Item)
async def create_item(item: Item):
return item
@app.get("/")
async def read_root():
return {"message": "Welcome to the FastAPI!"}
Available now! Telegram Research 2025 — the year's key insights 
