#!/usr/bin/python #-*- coding: utf-8 -*- from time import sleep import os import sys import threading DELAY = .3 class MyThread (threading.Thread): def start (self, i): self.counter = 0 self.sep = str(i) + "-" * i threading.Thread.start (self) def run (self): for i in range(80): print self.sep,i self.counter = i sleep (DELAY) threading.Thread.run (self) for i in range(70): m =MyThread () m.start (i) sleep (3 * DELAY)