Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from threading import Thread
- from time import wait
- class ParseThread(Thread):
- def __init__(self, text):
- Thread.__init__(self)
- self.text = text
- def run(self):
- wait(2)
- print(self.text)
- if __name__=="__main__":
- thread_list = []
- while True:
- usin = input(">> ")
- thread_list.append(Thread(usin))
- thread_list[-1].run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement