Is there a file named __init__.py in the modulename dir?
Best regards
On Wed, Mar 4, 2015 at 11:25 AM, wrote:
> I have the following directory /home/me/projects/modulename.
>
> I update PYTHONPATH using the following command:
> export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename
>
> It
Hi 水静流深
the source code is on https://github.com/goagent/goagent
Hi Terry,
GoAgent, a tool to help cross the GFW, is written by Python not Go. So this
may be not off-topic. :P
On Thu, Jul 3, 2014 at 6:40 AM, 水静流深 <1248283...@qq.com> wrote:
> There is a open source project-goagent,when you downl
Just like below:
In [1]: a = ([], [])
In [2]: a[0].append(1)
In [3]: a
Out[3]: ([1], [])
In [4]: a[0] += [1]
---
TypeError Traceback (most recent call last)
in ()
> 1 a[0] += [1]
TypeEr
imer("test3()", "from __main__ import test3")
t4 = timeit.Timer("test4()", "from __main__ import test4")
print t1.timeit(100)
print t2.timeit(100)
print t3.timeit(100)
print t4.timeit(100)
And the result is:
4.56177520752
2.8511
Sorry for the title which didn't make clear.
Here is a list x = [b, a, c] (a, b, c are elements of x. Each of them are
different type). Now I wanna generate a new list as [b, b, a, a, c, c].
I know we can do like that:
tmp = []
for i in x:
tmp.append(i)
tmp.append(i)
However, I wander
I got it!
It can do like [i for i in x for y in range(2)]
On Wed, Aug 7, 2013 at 4:50 PM, liuerfire Wang wrote:
> Sorry for the title which didn't make clear.
>
> Here is a list x = [b, a, c] (a, b, c are elements of x. Each of them are
> different type). Now I wanna generate
在 2012年3月10日星期六UTC+8下午8时34分35秒,sl33k写道:
> I'm trying project euler problem 3 and I've hit the wall with this
> error. What could be the problem here?
>
> l=[]
> >>> num=600851475143
> >>> i=1
> >>> while i<=num:
> ... if num%i==0:
> ... l.append(i)
> ... i+=1
> ... print max(l)
>