Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. def encode(actions):
  3. for (d,w,o) in actions:
  4. prods = decision_result((d,w,o))
  5. dispatch(d,w,o,prods)
  6. for (key, value) in prods.items():
  7. print str(d.idd) + " L " + str(w.idd) + " " + str(key) + " " + str(value)
  8.  
  9. for (key, value) in products.items():
  10. print str(d.idd) + " D " + str(o.idd) + " " + str(key) + " " + str(value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement