NoName schrieb:
> I try it:
> 
> def b():
>   ...
>   a()
>   ...
> 
> def a():
>   ...
>   b()
>   ...
> 
> b()
> it's not work.

It works.


def a():
     print "a"
     b()


def b():
     print "b"
     print a   # not calling!


b()

But if you really call a in b, you create an endless loop. In all 
programming languages, btw.


> Is it possible pre-define function like in c++

No.
> or place functions code
> after main block?

Yes.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to