Форум 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
#Циклы
#Условия
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
How to make the program on Python work in the background? [closed]
. The answers to it are not accepted at the moment.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, новичок
Random text on Python
How to make a random text on Python? So that he displays only 1 variable out of two? For example, I take two variables with the following value: Import Randomrole1 = "" Peacefu...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
What is the difference between different ways to extract the root in Python?
Root in python can be extracted in three ways x ** 0.5 , pow (x, 0.5) , math.SQRT (x) . And for the whole with the result, also math.isqrt (x) . What is the difference between...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, исключение, работа
How to start the function again if an exception falls?
The function is given with the exception to be inside. If the exception does not fall, then the function works further. How to start the function again if the exception fal...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, venv
What is the difference between Venv and Virtoalenv?
n venv , this is an integrated tool, virtoalenv you need to install a separately ni> venv the environment longer than than virtoalenv n n is there still a difference? ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
The more rational implementation of the enforcement algorithm to find the smallest positive number, which is divided into all numbers from 1 to 20
There is a problem: 2520 is the smallest number that can be divided into each of the numbers from 1 to 10 without a residue. Find such a smallest positive number that is d...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
How to increase the text of the code or window size in Pycharm?
I tried to use the standard combination of Ctrl + S, but it does not help. Maybe there are other hot keys?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, проект
A folder of __pycache__ appeared in the Python project folder
Good evening! I can’t understand where in the Python folder folder the __ pycache __ folder appeared. What is this folder and how was it created? p.s: all with the new year c...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии, работа
Finding positive peaks of function
It is necessary to programatically find the number and location of positive peaks on the graph. It is known that the number of peaks is odd. Typically, 3, 5 or 7. In this case...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Consistent alteation of symbols in the line
Lines of different arbitrary length, various characters. How to make a shift of the symbols of the line to one symbol and sequentially sort out all the options in order to get fro...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · итератор, python, ошибка, пример, работа
Python: 'Charmap' Codec Can 'Canomet Decode by 0x98
Good afteoon I read the UTF8 file and display to the console. When trying to derive the letter "" and "" an error arises: file "" I: \ programfile \ anaconda \ lib \ encoding...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Python, how to sort the list based on another list?
BOX_B = [ 7 , 3 , 9 , 5 ] box_a = [Apple, Banana, Cherry, Lemon] The essence is that after sorting box_b I need box_a sorted in the same way. # after sorting box_...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, помощь, ии
How to track file changes and copy changed files to another folder?
The essence of the program: check the files for the last change, and if they were changed, then we copy them to another folder. So the problem is that I have a list of files ob...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
Singleton on Python
I released Singleton with wiki () my code: class spritemanager ( object ): def __ New __ ( class ): if not hasttr (cls, 'Instance' ): class.instance = su...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, python, вопрос, пример, ии
Multi -line input ()
How can you make a multi-line Input (), because this function when entering certain characters and then press on Enter if the program consists only of a = input () print ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, python3
Lay out the number into simple factors
How to put the number into the multipliers in Python so that their work is equal to this number. Number = Int ( input ( 0 : : : : : : : : Factors.ppend (d) n // = d else...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, пример, ии
How to make a program that will repeat the text as many times as the user asked? [closed]
. The answers to it are not accepted at the moment.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · кортеж, python
How to connect the elements of the motorcade?
there is a motorcade: ( '' '2020-08-02' , '' 00:00 ', 'a' a ', ' b ', ' c ') you need to combine the first and second elements:
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, python3, pandas
Error: PANDAS.RORORS.PARSERROROR: EROROR TOKENIZING DATA. C Error: Expected 1 Fields in Line 5, Saw 9
Trying TSV & NDash; File in Pandas. import pandas as pddf = pd.read_csv (filiname, sep = '' \ t ') print (df) after doing this after this Code in the console I see...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · помощь, flask
How to create a databreSQL database?
There is an application (blog) how to create a databreSQL database. The code is fully working, the sources on the hithabe. Everything seems to be clear, except for one - how to cr...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример
The most common symbol
I want to make me introducing my word and I have written a symbol that appears in the word most often. It does not climb into my head how to do it. Please help. For example, we ha...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Python 3 how to track the click on the buttons
How can I track the click of the keyboard button if the Python script is launched in the background?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, строка, python
Oserror: [Winerror 10013] made an attempt to access the socket by a method prohibited access rights, how to solve a mistake?
Tell me, what is the problem? I need the program to start in any system without errors and that Firewall and antivirus Connection = Socket.af_inet, SOCKET.SOCK_STREAM) connect...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python, работа
How to add a condition to the list generator?
I tried to do so, but it does not work a = [ int (
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, работа
How to open a picture through Python?
My code: IMPort OSOS.SYSTEM ( "" d \ picture.jpg "" ) in the console, but there is no Pycharm ... What to do?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
What does the @ in Python symbol mean?
I saw in different programs the symbol @ and then some kind of word is together. What could this mean?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, помощь
Relative imports in Python
For some time (as relative imports canceled) I can’t normally solve the following question: Suppose, the structure of the program App/ __init __. Py foo/ __init __. Py hand...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · веб, работа
How optimally to make API requests to Bitrix
did someone have experience? Please share. I work with their CRM, try to unload all data about our leads through their API to my base. This will be a daily procedure. But for now,...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Fixed accuracy
It is necessary to withdraw the number of a type float on the screen with the accuracy of no less n signs after decimalum. python 3, without the use of libraries.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, python
How to see who and what wrote in the chat bot Telegram? Getupdates only gives {"OK": True, "Result": []}
Why the method: https://api.telegram.org/botxxxxxxxxx/getupdes gives out Only: { {
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
How to remove the lines selectively?
There is a certain file consisting of lines. It is necessary to remove the strings selectively, starting with a certain set of characters using Python. How to do this? Here is ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, python3, боты, работа
Automobile load .py script on Linux
Friends Hello everyone, I bought rangepi for myself to make a server for telegram bots, I need the bots to start after rebooting the device, I tried many ways but at least one hel...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример, django, debug, проект
How to make several configurations for the DJango project?
It is quite obvious that, for example, on production and when developing, the project configuration should be different. However, by default, Django provides for the use of the on...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, пример, работа
SMTPLIB in Python with smtp.yandex.ru
I use Python 3.4.3. I want to write a simple script that will send text information to the given box. Found :. In the interpreter mode I introduce: & gt; & gt; & gt; Import...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
How to find out which Python interpreter I use?
What is my interpreter installed? They write: "If you write in the terminal & laquo; python & raquo;, to run the interpreter, perhaps this is Cpython. Executable name for Iro...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, работа
Telegram-Bot in a common chat
I made a simple Telegram Bottom: import telebotron @bot.message_handler (
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
Finding the reverse element in the deduction ring
It is necessary to find an element of b , the reverse element a according to the module c . such that this (A*b)%C = 1 . how to find b in the general form?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
how to download files with Yandex disk
There is a file: (it is open) How can I download it? Authorization is not needed, etc.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
How to check the presence of a key in the dictionary?
If there is such a key in the dictionary, retus true if there is no such key in the dictionary, retus false
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, ии
What is the goal of __slots__ in Python?
What is the goal __ Slots __ in Python. Especially in relation to when to use it, and when not? Translation of the question from the participant

Интересное