Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __log(self, q, s, d, p, n, i):
- print("ITERACJA NR ", i)
- print("-----------------------------------------")
- print("q =", self.__list_to_text(q))
- print("s =", self.__list_to_text(s))
- print("-----------------------------------------")
- print(" ", self.__list_to_text(n))
- print("d =", self.__list_to_text(d))
- print("p =", self.__list_to_text(p))
- print()
- def __list_to_text(self, items):
- text = "["
- if items:
- for item in items:
- text += str(item).rjust(5, " ")
- text += "]"
- return text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement