Guest User

Untitled

a guest
Feb 19th, 2012
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. def p(b,a="|"):print a+b+a
  3. j="".join
  4. l=int(sys.argv[1])/10*10
  5. if l:d=j(["%-10d"%n for n in range(0,l,10)])+"%d "%l;L=len(d);h="-"*L;p(h,"+");p(j(["|    "[n%5]for n in range(L)]));p(d);p(" "*L);p(h,"+")
  6. else:print"NaR"
RAW Paste Data