Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.23 KB | None | 0 0
  1.                 if code == 'A':
  2.                     if line[0] != 'R':
  3.                         error == 1
  4.                     else:
  5.                         line = line[1:]
  6.                         if line[0] == '-':
  7.                             error == 1
  8.                         else:
  9.                             while len[0] != 'A' and 0<=int(line[0])<=9:
  10.                                 r = r+line[0]
  11.                                 line = line[1:]
  12.                             if line[0] != 'A':
  13.                                 error == 1
  14.                             else:
  15.                                 while len(line)>0  and 0<=int(line[0])<=9:
  16.                                     a = a+line[0]
  17.                                     line = line[1:]
  18.                                 if (int(x)+int(r))>(maxw/2) or (int(y)+int(r))>(maxh/2):
  19.                                     error == 1
  20.                                 else:
  21.                                     tt.reset()
  22.                                     tt.up()
  23.                                     tt.goto(int(x),int(y)-int(r))
  24.                                     tt.down()
  25.                                     tt.circle(int(r),360,int(a))
  26.                                     tt.up()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement