python
Proxy does not work in pyTelegramBotApi
I am developing my telegram bot for the game Pathfinder I have a home server (free laptop) to install it. For this bot to wor ... Schema("Missing dependencies for SOCKS support.")
requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.
How do I set my font?
My code
import sys
from PySide2.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint,
QRect, QSize, QUrl, Qt)
f ... the font on this path or not.
So I don't even know what the problem might be. Does anyone know the solution to this problem?
How do I create a matrix with zeros and ones in the same format as in the photo?
I could not adequately formulate the question, I will be grateful for the correction.
Initial conditions:
There is a list of ... of initial values:
vector = [3, 5, 7, 137, -1]
list_dict = [{-1: 1, 3: 1, 5: 1, 7: 1}, {3: 2, 5: 1}, {-1: 1, 137: 1, 5: 3}]
Problem with entering an array
The code is not compiled. I can't understand why the error occurs.
Problem with line 6:
spisok[i] = input()
IndexError ... KolStud= int(input())
for i in range(KolStud):
print('Введите ФИО['+str(i)+']: ')
spisok[i] = input()
print(spisok)
How do I make the bot in the discord click on the Link link(abbreviated)?
I need to write a bot for discord that will follow the link link, I have already searched the entire Internet, but there is n ... m should recognize and click on the link
(I know how to open the link in the browser, I need to handle this message exactly)
include in django
I try in the file urls.py execute
from django.contrib import admin
from django.urls import path, include
app_name = 'mywebch ... pp_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.
What to do?
Python zip function when rotating a matrix
I'm asking for your help, I'm learning python, and I'm trying to figure out how the zip function works in python.
I understa ... Rotated matrix:
['n', 'd', 'a']
['x', 'e', 'b']
['y', 'g', 'c']
Please tell me how the matrix was rotated? Why?
Thanks!
How do I make an image mask that changes part of the image to grayscale?
You need to put a circle on the image, outside of which the image will change color to grayscale, and inside the circle the c ... = img1-41
ax_1.axis('off')
ax_1.imshow(ax_1.Img)
Who knows how this can be implemented?
The first picture in the image:
.
When installing Python, error 0x80070643 is returned
I install Python from the official website. It turns out such an error. I tried to remove all Python from the computer and ... thon, everywhere such garbage. Mb I deleted accidentally, any system files? And how to restore them. Thank you in advance:)
How to extend a two-dimensional array in python
I'm making a game with an infinite world. I have a two-dimensional array pos_block[x][y]. Each cell in the array corresponds ... do this? I create an array using pos_blocks=[[0 for a in range(-501,501)] for b in range(-801,801)] and want to increase it.
How do I clear a file of HTML tags and output only text?
You need to clear the file of HTML tags and display the "clean" text.
I can output all HTML codes from the text, but I don't ... trip()
line = line.decode('utf-8')
urls = ''.join(re.findall(r'<[^>]+>', line))
print(urls)
How do I get the probability of belonging to a given class in xgboost.XGBClassifier?
There are 4 classes,
1; AA; 2; BB
Sample column with classes attached:
Creating an XGB object:
prm = {'num_class': 4, 'ob ... contains only 3 columns instead of 4
How to find out the probability for a particular class, for example for the class
AA
?
Progress Bar in Qt5 (python)
I make the application in a completely different style from windows, that is, I make the style of all widgets my own, using ... -just as a an example of what I want (the goal is just to make it out of a png file (s), no matter what kind of image it is)
How to create a webhook for tilda. Integration of tilda cc and iiko biz
Dear colleagues. There was a problem with the integration of tilda (webhook) and iiko biz
My task is to send orders from the ... :
application.run(host='195.54.163.133')
Can you tell me how to solve this problem? I don't know where to dig anymore...
Taylor series decomposition of a function(Python). Approximate value of the function
It seems that I enter the correct value of the Taylor series expansion of the function, but it does not give the correct valu ... d(f(a),5),end=' ')
print(round(f_tochne(a,lich),5))
lich+=1
a+=krok[![введите сюда описание изображения][1]][1]
How do I delete the first character in a string with replace()?
The function replace() takes the following arguments in my case:
str.replace(old, new), where old is the element in the strin ... i", and still replaces all the "i".
It is allowed to use other functions, but I would like it with replace(), is it possible?
How to output a message from discord in python to the command line (discord.py)
I wanted to make a bot for the Admin to communicate via the bot's command line.
Is it possible to somehow make the messages f ... def test(ctx, arg):
while True:
print(arg)
text = input("Введите текст:")
await ctx.send(text)
bot.run(TOKEN)
How to trim a string in python to the desired character from the end
Given a string:
a = 'Первый - второй - третий'
How can I trim a string from the end to ' - ' to get:
'Первый - второй'
... - '), but delete not specifically [1], but just the last item in the resulting list. Who knows how to do it? Tell me, please.
Random string generation
I'm interested in how you can generate a string like sa32Asf7w1 using the random library in python.
The first 4 characters are a random set of letters and numbers, from 6 to 10 the same. 5 character - random capital letter.
Free-kassa in Python telegram bot
Good afternoon, everyone. I make a telegram bot. I need a link where a person will click and pay for the product on free-kass ... in advance! https://www.free-kassa.ru/docs/api.php#form_sign We recommended using this instruction when generating a link...