摘要: 元祖创建 元祖创建简单,只需在括号中添加元素,元素间用逗号隔开,元祖元素不可修改,例子: >>> tuple1 = ("hello","world",1970,1999)>>> tuple1('hello', 'world', 1970, 1999) 创建空元祖,例子: >>> tuple1 = ( 阅读全文
posted @ 2017-08-03 10:43 yangyangchunchun 阅读(352) 评论(0) 推荐(0) 编辑