Форум 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 · метод, python
Count method in Python 3
What algorithm did the developers use in the Count method for a line in Python 3? What is the complexity of this algorithm?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, список, python
Remove the list elements under the condition
there is a list lst = [ 0 , 95
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, python, ии
Retu operator in the Try/Except/Finally unit
There is such a function: def f : try : 1 / 0 experept : retu 1 finally : retu 2
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, строка, python
Conclusion in one line from different Print in Python
I need to make the function print () written by the same Obrz: print ( 'a' a ') print (' b ') print ( 'c' ) brought something: & GT; C: \ Users \ User \ Doc...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · Условия, python, вопрос
Proper bracket sequence python [duplicate]
(6 & nbsp; answers) closed 8 years Back . Hello everyone who can help with the implementation of the test for the correctness of the stack through the stack on the...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, боты, ии
List in Txt File in Python
Actually how to write the result of the function of the function in the TXT file? f = open ( '***. txt' , 'w' ) f.write ( '????'
аватар форума question@mail.ru · 0000-00-00 00:00:00 · строка, python, работа
Create a list of lines with numbers through a gap
there is a line: '45 30 55 20 80 20 '. It is necessary to create an array from the numbers included in this line: [45, 30, 55, 20, 20, 20, 20, 20, 20, 20, 20, 20, 2...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, вопрос, пример
The difference in lists in Python [duplicate]
(4 & nbsp; answer) closed 7 years Back . There are three lists: list1 , list2 and list3 . & gt; List2 (according to the number of elements), and list3 is em...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Download file via urllib
Tell me, please, how to download the file by Python (urllib) Available in http and put it next to the script?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, помощь
How to write a CASE selection operator on Python?
Solve the problem using Python the schedule of the doctor's reception hours is given. To display the doctor’s reception clock on a given day of the week. I wrote to Pasc...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, веб, проект
Is it worth it to move from Python and Ruby to C#, in my case [closed]
. The answers to it are not accepted at the moment. , of course, the question will seem stupid) the fact is that I am a convinced user of Windows. With this...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
How to convert the list of lists to the list of numbers (Python)
there is: [[ 1 ], [ 2 ], [
аватар форума question@mail.ru · 0000-00-00 00:00:00 · тернарный, ии
How to change the Python version to Ubuntu
I installed Ubuntu, as I understood with it, Python2.7 was installed in the folder /home/user/.local/lib I installed Python3.5 After that through the PIP I download all kinds of l...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
How to open a network folder with a password in Windows?
I need to open a network folder in a conductor from a Python script. I can open network folders without a password via Startfile: os.startfile ( r "" \\ 192.168.1.2 \ folde...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, python, ошибка, requests
How to give out a MUT for a minute if he spams the bot in Telegram?
I made my bot in Telegram with rather simple functions. The problem is that literally one person can put it with simple spam with one or more commands, and the error gives the err...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, боты
Send a message to Skype chat using Python
You need to write a program on Python to send messages to the Skype chat. Skype4py is not suitable because the 64-bit python. are there any alteatives to work with Skype, in ad...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример
Lay out the number for the shortest amount of squares
Task: The user introduces a number no more than 10 000 000 , the program should decompose the number in the amount of the squares so that these squares are the minimum amount ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · pip
"Command 'Arm-Linux-GnueabiHF-GCC' Failed with Exit Status 1" when installing Pycurl
is Hummingboard ( cubox-i ) with debian . It issues the following error: error: Command 'Arm-Linux-GnueabiHF-GCC' Failed with Exit Status 1. arm-lineabiHF-GCC also ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
How to use Python to download a file with Google Drive?
I want to implement a program with auto -renewal, and for this you need a script to download a file with Google Drive. Immediately I say that the file is in open and downloading a...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · новичок
How to add relative ways to search for modules?
how sys.path add relative ways to search for modules?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, python, flask, ии, проект
Dynamic data update on the page
There is a simple Python Flask project standing on Raspberry. I read the temperature and humidity from the sensor, and take them to the Boostrap page. Everything is excreted perfe...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Bytes - string translation
DATA =
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, django, работа
What to expand the highly loaded site (Python, MySQL)?
There is a working site written on Python (Django), and the database - MySQL. Since the developers did not work much on writing optimized code, the site tued out to be very diffi...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, python, django
Access to Request.user from the Django model
I am writing a site on Django. There is such a problem: there is a Client model for almost everywhere on the site the user must display his customers. At first, I wrote in every f...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка, python3, работа
Sending email. The letter is not sent with Cyrillic
Purpose: you need to send a letter to the mail. The letter has Cyrillic symbols. The problem: the script works with Latin symbols, but does not work with the Cyrillic alphabet ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · декоратор, метод, python, ии
Why do python need @staticMethod
there is a class printer . He has 2 methods that do the same. The difference is that one of the methods is with a decorator @staticMethod , and the other - without. But I can ca...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, ии
Analysis of Python operation mechanisms
Not so long ago I use Python for my purposes. The question arose with the implementation of the language itself. I’ll start in order in order: Python language, as far as I un...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, python, пример
The best way to change the letters "A" and "B" in places
There is a function that takes an argument in the form of a line consisting of ““ a ”,“ a ”,“ b ”” and “b”. each “b” should be replaced by “a”, each “a” ““ B ”” and also with t...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · метод, пример, ии
How to properly convey an object from one class to another?
there are two class: mainwindow and setofbuttontons , first class - the main class, and the second class must build buttons on the skeleton on the skeleton Windows. So...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python, вопрос, пример
Creation of a N-dimensional array of length n
Can I create N -dimensional array? If so, how to realize it? If the matrix is ​​a “list of lists”, then it will look something like this: [[...]], [[...] ...]] , or so th...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, работа
Split method in Python
Code: a = input (). Split () Print (a) when serving the line '1 2 3' 1
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, помощь
The difference between @singledispatch and @overload
What is the difference between and? With what in Python to make a reduction?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · tkinter
Tkinter background window image
How to set a background image of the entire window in Tkinter? So that all the buttons are on top
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, python, пример
Some elements from the list are converted into int
Please tell me, is there a shorter way to convert the elements into the type int ? Dan, for example, the list of a = ["" "" "2" "," "Hello", "3", "" Hello ""] is it possible,...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример, ии
Python interaction with cmd.exe
It is necessary to call the Windows team runoff, send the command (for example ipconfig ). Then, save the result in NOTEPAD. I tried through Pywinauto/Subprocess. Follow the o...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · исключение, python, вопрос, пример, работа
The frequency of words in those
The above script on Python calculates the frequency of words in the text (continuous sequences of letters with the exception of punctuation marks) and displaying the results of th...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Calculating the value of mathematical expression from the line
There is a line containing a mathematical expression of the species: 1 / 3 + 2 / 3 is there a module that calculates the value of such expressions?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · список, строка, python, пример
How to check is it contained in the line some word from the list?
For example, there is a list Words = [
аватар форума question@mail.ru · 0000-00-00 00:00:00 · помощь, пример
STDIN and STDOUT implementation
In the problem (except for the solution of the solution itself), it is necessary to implement data receipt through stdin , and the output through stdout . Prior to this, I usual...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
for _ in Range. How does a lower emphasize work
MATRIX = [[ 0 ]* 5 ] for _ in range ( 5 )] there is such an expression, creates five such elements 0 0 0 0 0 . Who can explain the mechanics of creating, the easier t...

Интересное