2014年6月13日金曜日 12時47分19秒 UTC+9 hito koto:
> Hi, all
>
>
>
> I want to make the function use while statement,and without a deepcopy
> functions.
>
>
>
> this is my use deepcopy function correct codes, So, how can i to do a
> different way and use whil
2014年6月13日金曜日 12時47分19秒 UTC+9 hito koto:
> Hi, all
>
>
>
> I want to make the function use while statement,and without a deepcopy
> functions.
>
>
>
> this is my use deepcopy function correct codes, So, how can i to do a
> different way and use whil
Hi, all
I want to make the function use while statement,and without a deepcopy
functions.
this is my use deepcopy function correct codes, So, how can i to do a
different way and use while statement:
def foo(x):
if not isinstance(x, list):
return x
return [foo(y) for y in x]
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> >>>> def foo(x):
>
> > ... y
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> >>>> def foo(x):
>
> > ... y
2014年6月12日木曜日 14時43分42秒 UTC+9 Steven D'Aprano:
> On Wed, 11 Jun 2014 21:56:06 -0700, hito koto wrote:
>
>
>
> > I want to use while statement,
>
> >
>
> > for example:
>
> >>>> def foo(x):
>
> > ... y
2014年6月12日木曜日 12時58分27秒 UTC+9 Chris Angelico:
> On Thu, Jun 12, 2014 at 1:40 PM, Vincent Vande Vyvre
>
> wrote:
>
> > Le 12/06/2014 05:12, hito koto a écrit :
>
> >
>
> >> Hello,all
>
> >> I'm first time,
>
> >>
>
Hello,all
I'm first time,
I want to make a while statement which can function the same x.pop () and
without the use of pop、how can i to do?
i want to change this is code:
def foo(x):
y = []
while x !=[]:
y.append(x.pop())
return y
--
https://mail.python.org/mailman/listinfo