from time import sleep
from threading import Thread
def first():
sleep(3)
print(2)
def second():
sleep(3)
print(1)
def main():
Thread(target=first).start()
Thread(target=second).start()
print("Продолжаем")
main()
PS D:\Dropbox\Develop\all_tests> python threads.py
Продолжаем
1
2