S
S
senyadev02018-09-15 22:49:23
Python
senyadev0, 2018-09-15 22:49:23

How to get a specific part of a phrase in python?

I need to make the following command:
kick bot 1938281
These numbers are the id of the person who needs to be kicked out of the conversation.
I just need to get exactly the id itself, and then I will do everything myself.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anatoly, 2018-09-15
@senyadev0

message = 'бот кик 1938281'
id = message.split(' ')[-1] # 1938281

X
xne71247, 2015-04-06
@KnightForce

Try doing File->Invalidate Caches/Restart

V
Vitaly Pukhov, 2015-04-06
@Neuroware

judging by the errors, it looks like the project did not fully load, you need to solve the problem with gradle project sync failed and the second one will automatically disappear. How to solve I will not tell you, you need to google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question