list and turple
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了list and turple相关的知识,希望对你有一定的参考价值。
#! /usr/bin/python#_coding:utf-8_
classmates=["jack","bob","tom"]
print(‘classmates=‘,classmates)
print(‘classmates[0]=‘,classmates[0])
print(‘classmates[1]=‘,classmates[1])
print(‘classmates[2]=‘,classmates[2])
print(‘classmates[-1]=‘,classmates[-1])
classmates[1]="spider man"
print classmates
classmates=("jack","bob","tom")
print(‘classmates=‘,classmates)
print(‘classmates[0]=‘,classmates[0])
print(‘classmates[1]=‘,classmates[1])
print(‘classmates[2]=‘,classmates[2])
print(‘classmates[-1]=‘,classmates[-1])
classmates[1]="spider man"
print classmates
以上是关于list and turple的主要内容,如果未能解决你的问题,请参考以下文章
angular-drag-and-drop-lists 拖动的元素消失(chrome)