Objects in Python
88888 Dihedral
dihedral88888 at googlemail.com
Sun Aug 26 02:14:52 EDT 2012
Jan Kuiken於 2012年8月24日星期五UTC+8上午2時02分00秒寫道:
> On 8/23/12 06:11 , Steven D'Aprano wrote:
>
>
>
> >> 2) Related to the above, you can infinitely nest scopes. There's nothing
>
> >> wrong with having six variables called 'q'; you always use the innermost
>
> >> one. Yes, this can hurt readability
>
> >
>
> > Well, there you go. There *is* something wrong with having six variables
>
> > called 'q'.
>
>
>
> Sometimes you don't want only six variables called 'q' but a hundred
>
> of them :-)
>
>
>
> def fac(q):
>
> if q < 1 :
>
> return 1
>
> else:
>
> return q * fac(q-1)
>
>
>
> print(fac(100))
>
>
>
>
>
> Jan Kuiken
The long integer arithmetic operations are built in.
This makes mathematicians and designers focused on the theory side.
More information about the Python-list
mailing list