'I'm just running them in succession and seeing how long they'. The full
code looks like this, this is only an example.py here. and I run 'time
python3 example.py' for each function.
def fib_dp(n):
dp = [0] * (n+1)
if n <= 1:
return n
dp[0], dp[1] = 0, 1
On Sun, Aug 25, 2019 at 1:43 PM Windson Yang wrote:
>
> Thank you, Chris. I tried your suggestions. I don't think that is the reason,
> fib_dp_look() and fib_dp_set() which also allocation a big list can return in
> 2s.
(Please don't top-post)
Are you running each function more than once, or j
Thank you, Chris. I tried your suggestions. I don't think that is the
reason, fib_dp_look() and fib_dp_set() which also allocation a big list can
return in 2s.
Chris Angelico 于2019年8月25日周日 上午11:27写道:
> On Sun, Aug 25, 2019 at 12:56 PM Windson Yang wrote:
> >
> > I have two functions to calculat
On Sun, Aug 25, 2019 at 12:56 PM Windson Yang wrote:
>
> I have two functions to calculate Fibonacci numbers. fib_dp use a list to
> store the calculated number. fib_dp2 just use two variables.
>
> def fib_dp(n):
> if n <= 1:
> return n
> dp = [0] * (n+1)
>
I have two functions to calculate Fibonacci numbers. fib_dp use a list to
store the calculated number. fib_dp2 just use two variables.
def fib_dp(n):
if n <= 1:
return n
dp = [0] * (n+1)
dp[0], dp[1] = 0, 1
for i in range(2, n+1):
dp[i] =
On 24Aug2019 21:52, Paul St George wrote:
Have you not got one of these handed to you from something?
Or are you right at the outside with some "opaque" blender handle or
something? (Disclaimer: I've never used Blender.)
Thank you once again.
If I understand your question, I am right outside
Have you tried asking on a blender user mailing list for help with this problem?
It seems that someone familiar with blender and its python interface should be
able to help get you going.
Barry
> On 24 Aug 2019, at 20:52, Paul St George wrote:
>
>> On 24/08/2019 01:23, Cameron Simpson wrote:
On 24/08/2019 01:23, Cameron Simpson wrote:
On 23Aug2019 13:49, Paul St George wrote:
Context:
I am using Python to interrogate the value of some thing in Blender
(just as someone else might want to use Python to look at an email in
a Mail program or an image in Photoshop).
Assumptions:
So,
On Sat, 24 Aug 2019 14:12:38 +0200
Manfred Lotz wrote:
> I want to exercise how to create a package and upload it to pyi. So, I
> registered with https://test.pypi.org/.
>
> Now, when I click on
> https://test.pypi.org/manage/account/#account-emails to verify my
> email address I get an interna
I want to exercise how to create a package and upload it to pyi. So, I
registered with https://test.pypi.org/.
Now, when I click on https://test.pypi.org/manage/account/#account-emails
to verify my email address I get an internal server error.
Same when I try https://test.pypi.org/manage/account
10 matches
Mail list logo