Advertisement
skaramicke

Untitled

Nov 13th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1.             total = float(iterations) * float(depth) * float(width)
  2.             current = x + z*width + j * depth * width
  3.  
  4.             progress = current / total * 100.0
  5.             output = "%.2f" % round(progress, 2)
  6.             output += '% complete. '
  7.             stdout.write('\r'+output.rjust(18))
  8.             stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement