>>> mtest = ('one','two', 'three')
>>> mtest
('one', 'two', 'three')
>>> mtest[0]
'one'
>>> two_test = ("one_two_three")
>>> two_test[0]
'o'
>>> num_three = ("one_two_three"l,)
SyntaxError: invalid syntax
>>> num_three = ("one_two_three",)
>>> num_three[0]
'one_two_three'
>>> d = 'one_two_thre',
>>> d
('one_two_thre',)
>>> d[0]
'one_two_thre'
>>>
阅读(959) | 评论(0) | 转发(0) |