Форум 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
Elepenstate addition of lists of various lengths
There are two lists: a = [ 1 , 2 , 3 ] b = [ 4 , 5 , 6 , 7 , 8 ] you need to get the following result: a + b = [
аватар форума question@mail.ru · 0000-00-00 00:00:00 · django
Delete duplicates from Queryset
Good afteoon, there is Queryset, you need to remove duplicates from it: Example = Models.objects.values ​​('Name', 'Photo__name'). DistinCT () We have a jain, as a resul...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос
VPN server, create a VPN connection
How can you create a VPN server to which you can create a connection through a python?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии, работа
Pycharm does not identify the Math module
When writing Import Math Pycharm, a MATH brings a red line and, when hovering a cursor, gives out No MODULE NAMED MATH . Math itself works, i.e. When performing the code i...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · ии
How to use buttons and tips when entering commands present in verified bots in the Discord.py library
When using the Juniper Bot bot I noticed buttons that ordinary bots do not have, but I would like to use this function. You can please say how to use the function shown from th...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · django
Variables in the Django template
I would like to use the tag {% url%} in order to do hard, in connection with which I faced the following problem: I transmit the model containing pages {% for page in pa...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · Условия, python, ошибка, пример, django, ии, debug, работа, проект
Project debugging in Pycharm
My task is to launch a project on Django in pyharm. conditions. ubuntu 13.04, Python 2.7 I launch IDE from my user (for example, NISK). for the treatment The databas...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, работа
Search by entering the line in Django + Haystack + Whoosh
There is a certain model. It stores the names of films. Here is the index class: from haystack impport indexes from kino.films.models import films class Filmsindex ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример, ии
Recursion in regular expressions
Hello. There is a regular expression (for example) / \ (([^) (]+ | (? R))+ \) /X (? R) means a recursive link to the regular expression itself, where you can find a regu...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка, пример, ии, debug, работа
Django. Sending Email to Localhost`e
Tell me how I can send a letter on a mailbox on a local server. Dzhango works at Localhost: 8080 for sending (as I read in the documentation) you need a SMTP server. I also launch...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · lambda, python, ии, проект
CMD does not open in pycharm
The Pycharm does not open the terminal, Pycharm of the last current version, Windows 10 X64. I tried to launch from the admin, in the project settings, the path to the project is ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, ошибка, пример, python3, asyncio, веб, ии, игра
asyncio: the correct stop is not your consignment
I am again with the same problem. In all tank were under my control, and I could manually close them. But the trouble is: I needed webcakes here. In the examples in any correct cl...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · Циклы, python
Posting in VK via vk.api - python
There was a need for the development of a script for posting in the community (group) of the site vk.com pictures. I realized the sending of a simple message (textual) and how to ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, python3, проект
The problem of This Application Failed to Start Because Its Cold Not found the Qt Platform Plugin "Windows" in "[duplicate]
(3 & nbsp; answer) closed 6 years Back . recently reinstalled the Windows and decided to try to deal with the python. installed Python, Pycharm, created a proje...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, django, новичок, работа, проект
__init __ () Takes 1 Positional Argument But 2 Were Given
In Dzhang, a beginner, therefore I ask for help from more experienced people. This is the Frontened application a la starting page of the project, and the class is a model with...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, ошибка, пример, ии
Python Pandas. Replace in the column some values ​​with others
The next task is the column Basepay1 The numbers are indicated in it, but the following values ​​are also found: not Provided . So, I need to transform this sign into the type ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, ошибка, пример
Why am I getting the error "Indexerror: List Index Out of Range" and how to fix it?
The purpose of creating this question and the answer to it is to summarize all the information related to the error: Indexerror: list index out of
аватар форума question@mail.ru · 0000-00-00 00:00:00 · вопрос, пример, django, боты, ии, проект
Pycharm, remote project and environment.
Good time of the day. is a remote project on Django. I set up Pycharm to work with it on SFTP. In this case, the changes in the files are reflected on the server (copied when c...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, flask, ии, работа, проект
Working with a large number of records in the session
What is the correct way to work with a large number of records with SQLAlchemy?I have two tablets. The first 5 million records have the following types: question_id, view_count, co...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · совет
Python encryption
Advise the library for encryption and decryption on python.
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
The amount of cubes with recursion - finding the best amount of cubes
аватар форума question@mail.ru · 0000-00-00 00:00:00 · пример
How to get an hourly belt on Python
Hello. It is necessary to get the number of the clock belt on the Time.timezone python. Thanks in advance
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, работа
How to launch a Python script on another PC
Hello, I started studying Python. I wondered how to start the script on another computer (both PC on Windows) without preparing the car (without installing Python)? All that I cou...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · кортеж, строка, python
How to find symbols from the motorcade ('!', ',', '?') In the line and remove them?
there is a motorcade: a = ( '!' , ',' , ''? ') and the line Dasd, Sadarg! Ada How can you find characters from a motorcade in a line and remove them?
аватар форума question@mail.ru · 0000-00-00 00:00:00 · словарь, python, помощь, ошибка
The overkill of the key-value in 2 or more dictionaries and the recording of coincidence in the new dictionary through *args
There are two dictionaries, you need to sort out the key-meaning in both dictionaries. Compare if the same key-knowledge using the FOR cycle and the *argys parameter. Add the same...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · словарь, python
Get the last key in the python dictionary
There is a dictionary: Dicid = { 1 : [ 3 , 4 ], 2 : [ 5 , 6 , 3 ], 3 : [ 7 , 1 , 9 , 2 ]} you need to get the last key in this dictionary. Dicid.keys () // Re...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
What does Tilda mean in Pandas?
What does Tilda mean in this case? df.loc [~ non_numberic_profits] in the Stolbets non_numberic_profits Lines were set that do not meet the type of data float . That i...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
How to rename the speakers in DF Pandas with a lower emphasis
A = PD.Dataframe ([{
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python
Python 3.X Changing the values ​​of the line elements in the cycle
How to change the value of the symbol of the line in the cycle? Code: def getdetimepostfix (): Import DATETIME; dtvalue = DateTime.DATETEME.NOW (); retvalue = str (...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
Change the Python version in Windows 10
Actually, I have in the system (Win 10) 2 versions of Python, both are needed. How can you switch them? In the situation on the screen, why does the version write 2.7, and starts ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · ии
How to compile the module.py in the executable .exe file with a picture?
I have a script on pyqt5 , and it contains pictures, but after compilation .py in .exe
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ошибка, numpy, matplotlib
The whole of integers: Typeerror: Only Length-1 Arrays Can Be Converted to Python Scalars
IMPORT ScipY Import ScientpAc Import cmath import math import matplotlib.pyplot as print Import numpy as np from scipy idl from scipy.signal import freeq...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии, игра, работа
How to create a .APK file using Buildozer in Windows?
When you try to create a file .apk through Buildozer I faced a problem that if you do it in windows , then Target Android is visible, this is clear In the terminal Buildoz...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · lambda, python, django, ии
The dynamic path for Upload_to in the Django model (Models.filefield)
Hello, in Django to version 1.4 there was the opportunity in the model for models.filefield to specify “dynamically” “The created path of storing files in the variable Upload_to ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, ии
How to get all the combinations of numbers in Python correctly
there is a code: IMPORT ITERTOOLS for i in itertools.combinations_with_replacement ( '' 0123456789 ', 4 ): print ( '' ' .join (i)) I need to get all the combina...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · функция, список, python, пример
The search algorithm for all divisors of the number
Day! When deciding on the network, the algorithm for finding all the dividers of the number. Well, that is, for eight it is necessary to issue [1,2,4,8], and not [2.2,2] - a list ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · множество, python, пример
What does & in Python mean?
Good evening to everyone! Please tell me what the operator & amp; in Python means? (this is not connected with many). for example, there is a code that calculates whether the u...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, ии
Senior Python Developer?
Often I see the word Senior in the headlines vacancies, and then the large amounts that are ready to pay this person. The question naturally arises, who is Senior? What criteria ...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, вопрос, боты, ии
Python: How to block the keys for everything except the Keyboard module?
I have a program that should substitute certain characters and combinations of symbols when pressing certain keys: impport keyboard when true : housey = keyboard.read_ho...
аватар форума question@mail.ru · 0000-00-00 00:00:00 · python, пример
Reverse number to a module m
The retu number is given two integers M and a. If there is no reverse number to a by module M, then remove the number & minus; 1, and if it exists, then withdraw this number (the ...

Интересное