`

函 数

 
阅读更多
>>> def hello():
	print 'hello world'

	
>>> res = hello()
hello world
>>> res
>>> print res
None
>>> def test():
	return 'a','b',3

>>> test
<function test at 0x0000000002EAAF98>
>>> test()
('a', 'b', 3)
>>> a,b,c = test()
>>> a
'a'
>>> b
'b'
>>> c
3
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics