Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time #Test here: https://repl.it/languages/python
- while True:
- time.sleep(0.3)
- msg = input("cmd: ")
- length = len(msg)
- kek = 0
- kek2 = 0
- for i in range(length):
- if msg[i:i+1] == "/":
- kek = i
- break
- if kek != 0:
- for i in range(kek,length):
- if i > kek and msg[i:i+1] == "/":
- kek2 = i
- break
- word1 = msg[0:kek]
- word2 = msg[kek+1:kek2]
- word3 = msg[kek2+1:length]
- print(word1 + " | " + word2 + " | " + word3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement