you can use yield structure in python for multiple return. ex:
def func(a):
yield a*2
print "a*2"
yield a*3
print "a*3"
...
data = func(5) --> data = (10,15,... )
On Wed, Jun 3, 2015 at 1:57 AM, fl <[email protected]> wrote:
> Hi,
>
> I just see the tutorial says Python can return value in function, it does
> not say multiple data results return situation. In C, it is possible.
> How about Python on a multiple data return requirement?
>
>
> Thanks,
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list