Форум Python: Вопросы и Ответы

#проект
#работа
#книга
#урок
#debug
#jupyter
#venv
#pip
#оптимизация
#интервью
#продвинутый
#новичок
#игра
#автоматизация
#базы_данных
#ии
#парсинг
#боты
#веб
#asyncio
#tkinter
#requests
#matplotlib
#pandas
#numpy
#flask
#django
#python3
#python2
#совет
#обсуждение
#пример
#ошибка
#помощь
#вопрос
#python
#метакласс
#асинхронность
#многопроцессорность
#многопоточность
#контекстный_менеджер
#assert
#logging
#исключение
#try_except
#итератор
#генератор
#строка
#кортеж
#множество
#словарь
#список
#полиморфизм
#инкапсуляция
#метод
#ооп
#декоратор
#lambda
#рекурсия
#функция
#match_case
#тернарный
#break_continue
#Циклы
#Условия
аватар форума dev_helper · 2026-05-09 01:32:35 ·
Что такое null/nil в Java и как с ним работать?
Всем привет! Разбираюсь с основами Java и столкнулся с концепцией null. В некоторых языках (например, в SQL или Go) я привык к термину nil. Правильно ли я понимаю, что в Java нет n...
аватар форума senior_dev_ru · 2026-05-09 01:32:30 ·
Как начать изучать JavaScript с нуля?
Всем привет! Я решил начать изучать JavaScript с нуля, но столкнулся с проблемой выбора правильного пути обучения. У меня нет опыта в программировании, кроме базовых знаний HTML и ...
аватар форума fullstack_master · 2026-05-09 01:32:30 ·
Как начать изучать Swift с нуля?
Приветствую, коллеги! Я решил начать изучать Swift для разработки под iOS/macOS, но столкнулся с проблемой выбора правильного пути обучения. У меня нет опыта в программировании, и ...
аватар форума backend_guru · 2026-05-09 01:32:26 ·
Как начать изучать Kotlin с нуля?
Всем привет! Я решил начать изучать Kotlin с нуля, но столкнулся с проблемой выбора правильного пути обучения. У меня есть базовые знания Java (переменные, циклы, ООП), но я не уве...
аватар форума pro_coder_ru · 2026-05-09 01:32:24 ·
Что такое null/nil в TypeScript и как с ним работать?
Всем привет! Начал изучать TypeScript и столкнулся с путаницей в понимании null и undefined. В JavaScript я привык, что null — это явно заданное 'ничего', а undefined — неинициализ...
аватар форума open_source_fan · 2026-05-09 01:32:23 ·
Как начать изучать C++ с нуля?
Здравствуйте, уважаемые участники форума!Я решил начать изучать C++ с нуля, но столкнулся с проблемой: в интернете слишком много противоречивой информации о том, с чего лучше старт...
аватар форума techwriter_ru · 2026-05-09 01:32:22 ·
Как начать изучать Rust с нуля?
Привет, коллеги! Решил наконец-то освоить Rust, но чувствую, что утопаю в информации. У меня нет опыта в системном программировании (до этого писал на Python и JS), поэтому многие ...
аватар форума backend_guru · 2026-05-09 01:32:20 ·
Как начать изучать PHP с нуля?
Всем привет! Я полный новичок в программировании, решил начать с PHP, так как слышал, что это хороший язык для веб-разработки и для старта. Но столкнулся с проблемой: в интернете о...
аватар форума dev_helper · 2026-05-09 01:32:19 ·
Как начать изучать Java с нуля?
Всем привет! Я полный новичок в программировании и хочу начать изучать Java с нуля. Подскажите, пожалуйста, с чего лучше начать и какой план обучения выбрать, чтобы не потеряться в...
аватар форума senior_dev_ru · 2026-05-09 01:32:09 ·
Как начать изучать TypeScript с нуля?
Всем привет! Я начинающий разработчик, который хочет перейти с JavaScript на TypeScript, но не знаю, с какой стороны подойти к изучению. Пробовал читать официальную документацию, н...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python, вопрос, совет
How to divide all integers in the array into separate categories?
Good day! Interested in such a question. Suppose that there is such a code: a = line ( range ( 1 , 11 )) print (a) he will display [1, 2, 3, 4, 5, 7, 8, 9, 9, 9,...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, работа
Pyqt5 window with a transparent background
I want to create a window that has a transparent background inside. I jumped over all the options. I invariably get a black background. The option with the transparency of the ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
Stop Thread when completing the main stream of the script
For example, I have the following code: def loop : While true : print ( "" text "" ) Sleep ( 10 ) thread = Threading.thread (target = loop) how to make the str...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка
How to make a static property of the class in Python?
I try this: class chantcodes : _Chat = 'CHT' @property def retu seelf._chat if I use this: Print (Chatcodes.chat + 'ANY_STR' ) then an error appea...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, пример
Get a translation of the word from the Google Translate website in python
I have such a question that if there is a website Translate.google.com (for example). When you want to translate the word, you must enter it in the field and then it will give you...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · словарь, python, пример, ии
Is it possible to initialize class variables in the dictionary. Python3.8
Is it possible to somehow assign the values ​​of the class transferred to each variable in the dictionary. For example, the class has variables: a, b, c, d -, and I convey the dic...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии, работа
Python is in Path but does not start from CMD
installed Python for Visual Studio 2019. I also want to work with it from CMD. He added the way to the folder containing python.exe in the variable path . However, when restart...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, кортеж, python
Python, from a motorcade to a line
a motorcade {"" "34", "76", "0", "532"} how to pull out the numbers from this motorcade so that when the output does this form? 34 , 76 , 0 , 532 I just have thoug...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, работа
Odd numbers on the segment
Two integers are given, a and b . b . upd: Use the instruction if is prohibited! Input: Two whole numbers are presented: a and b range (a - (a + 1 ) % 2 ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод
How to take the next message of the user Aiogram
In Telebot, this method looks like this Bot.register_next_step_handler How to take the next message of the user in Aiogram?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка, боты
The task is "minimum simple divider"
I just started to study Python on the Sirius platform. I was able to solve all other problems from the topic & laquo; While & raquo;, besides one task that does not allow me to go...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, пример
Coding when sending a message
Dmitry Dereyankin. Thank you very much for the example, easily realized it at home. But there is a problem. If msg = mimetext ('') contains only Latin, then everything is fine. Bu...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · словарь, python, ошибка, пример, работа
Python 3 multidimensional dictionary
Studying Python 3.X, I went on the basics. Before that, I wrote on php. now I decided to complete the plan: read CSV as the file lines read, process them and write them...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · асинхронность, python, помощь, пример, requests
Asynchronous HTTP calls Grequets
always used the Request library. But how I can’t change my memory there, you can send a request to only 1 http url and only then to another, in tu. Grequests as it is written ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Automatic filling of the form in Django Template
Good afteoon. there is a form of user profile. When displaying on the screen, it must be filled with the data of the current user. How can this be done? class profile (...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Replacing values ​​in a particular Dataframe column by dictionary
It is necessary to replace the values ​​in a particular Dataframe column by the dictionary, if you are not found, you need to remove the entire line from Dataframe. I was able ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · словарь, python, вопрос, пример
Composite python dictionary with several values ​​from other dictionaries in an identical key
I will immediately make a reservation & ndash; I am not a programmer, but I study Python for my own specific purposes (processing data obtained from the network), so if my questio...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python
How to remove gaps in the list
I have a list Word = [ '' ,
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
Russian names for the fields of the database in the admin
The question is coy simple, but something didn’t figure out something ... How to do that Russian names for the database fields were displayed in the admin panel? What needs to be ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, numpy, pandas
How to remove lines according to different conditions?
there is a data frame and I need to delete lines from it in which the value of the column a is more than 50. This operation is successfully performed by the code: A B C D 1...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · lambda, список, словарь, python
Delete a dictionary from the list of dictionaries
I have a list with dictionaries. Where the person’s name is indicated, where and where it goes. But one dictionary has no meaning "from" from ". How to delete this dictionary from...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка, python3, pip, debug
Pyaudio is not installed
The PyAudio library is not installed. I tried pip install PyAudio. First, he told me to download Microsoft visual c++. Downloaded and installed it. Now this errorC:\Users\sulay\Dow...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример, ии
Telegram Bot delete bot
I use Pytelegrambotapi how to delete a bot in a chat? For example: the bot gives the user several buttons, and when you press on one of them, the field with buttons is removed.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
Selection of part of the password by passing the mask and Sha-256
I have a piece of password *ELP ** (instead of stars there should be the characters that need to be selected), but I know from it sha256 hash:
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
Using the variable in the regular expression python
Salute! Please help to solve it would seem trivial, but for lack of experience in programming, an absolutely unusual task for me :) mt = re.findall (
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Task: converting a line from a camel register into a snake
You need to convert a line from a camel register to a snake, add the ability to change the separator. I solved the problem, but I would like to know how to solve it more correctly...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, pandas, matplotlib
How to streamline the dates on the graph in an increase in the order?
Est CSV File with a number of sick people over the past year, but it has an incorrect structure, i.e. At first there is today's date, then yesterday, etc. how to build the corr...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · итератор, python, пример
Why do you need Commit, Connection, Cursor and Close?
Basic example import psycopg2 # connect to an existabase conn = conn = psycopg2.connect ( "dbname = test user = postgres" ") # open a cursor to performation cupir = Conn.cu...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python, пример
Proper transfer of the line to Python
Tell me, there is a list with phrases, but they are long and pep8 swifts over the length of the line. I transfer the part of the phrase the symbol \ , but then he counts a...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Cut all the emoticons from the line
Suppose we have a line: "" ????????? & zwj; ?? ?? & zwj; ?? & zwj; ❤ & zwj; ? & zwj; ?????✋??? What a wonderful day! "" as this from this one from this Remove all t...

Интересное