def write(): global path bot = AutoKiddobot() bot.start() x, y = xycvrt(path) bot.go_to_xy(y[0], x[0]) time.sleep(1) move(x, y) bot.pen_up() bot.go_to_xy(0, 0) time.sleep(2) bot.close()
def write(): global y_pred bot=AutoKiddobot() bot.start() fn='Coordinate\\'+y_pred+'.txt' with open (fn) as file: line=file.readlines() data=cvrtarr(line) x,y=xycvrt(data) bot.go_to_xy(x[0],y[0]) time.sleep(1) move(x,y) bot.pen_up() bot.go_to_xy(0,0) time.sleep(2) bot.close()