摘要: 元组 Python的元组与列表类似,不同之处在于元组的元素不能修改。元组使用小括号,列表使用方括号。 >>> aTuple = ('et',77,99.9) >>> aTuple ('et',77,99.9) <1>访问元组 <2>修改元组 <3>count, index index和count与字 阅读全文
posted @ 2020-04-24 00:33 kelin1 阅读(133) 评论(0) 推荐(0) 编辑