#!/usr/bin/env python26 #-*- coding:utf-8-*- def test(): a = 10 b = 20 return a,b #返回一个元组 atuple= test()a,b = test() print atuple print atuple[0] print atuple[1]