Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.py
- import one
- import two
- from threading import Thread
- # while True:
- one.one().start()
- two.two().start()
- # pass
- one.py
- import time
- from threading import Thread
- class one(Thread):
- def run(self):
- while True:
- print("i am one!")
- time.sleep(1)
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement