Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total = float(iterations) * float(depth) * float(width)
- current = x + z*width + j * depth * width
- progress = current / total * 100.0
- output = "%.2f" % round(progress, 2)
- output += '% complete. '
- stdout.write('\r'+output.rjust(18))
- stdout.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement