help required !!!
--
https://mail.python.org/mailman/listinfo/python-list
from os import system, getcwd, chdir
def tsp_generate_hops(pos, start, length):
hops = []
tour = solve_tsp(pos)
c = -1
for hop in tsp_hop_gen(tour, start):
c += 1
hops.append(hop)
if c == length:
break
return hops
def solve_tsp(data):
old_cwd = getcwd(
On Thursday, December 24, 2015 at 8:33:59 PM UTC+1, Qurrat ul Ainy wrote:
> what is snippet ??
>
>
>
> On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote:
> > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote:
> > > H
what is snippet ??
On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote:
> On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote:
> > Hello,
> >
> > Can someone please explain this code below. I am new at Python .
> >
Hello,
Can someone please explain this code below. I am new at Python .
Thanks
def receive_messages(self, msgs, time):
for msg in msgs:
msg.set_recv_time(time)
self.msgs_received.extend(msgs)
--
https://mail.python.org/mailman/listinfo/python-list