Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6098523
  • 博文数量: 2759
  • 博客积分: 1021
  • 博客等级: 中士
  • 技术积分: 4091
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-11 14:14
文章分类

全部博文(2759)

文章存档

2019年(1)

2017年(84)

2016年(196)

2015年(204)

2014年(636)

2013年(1176)

2012年(463)

分类: Python/Ruby

2014-06-26 00:42:38


>>> 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'
>>> 
阅读(923) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~